projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix for binary test.
[awesomized/libmemcached]
/
libmemcached
/
csl
/
context.h
diff --git
a/libmemcached/csl/context.h
b/libmemcached/csl/context.h
index 94f6813463f364d252a41d4343cedb32ee084e07..77fac219bdd79ed2ecca1fd634af9e76c5ca5935 100644
(file)
--- a/
libmemcached/csl/context.h
+++ b/
libmemcached/csl/context.h
@@
-52,7
+52,8
@@
public:
memc(NULL),
rc(rc_arg),
_is_server(false),
memc(NULL),
rc(rc_arg),
_is_server(false),
- _end(false)
+ _end(false),
+ _has_hash(false)
{
_hostname[0]= 0;
buf= option_string;
{
_hostname[0]= 0;
buf= option_string;
@@
-75,6
+76,8
@@
public:
_end= true;
}
_end= true;
}
+ bool set_hash(memcached_hash_t hash);
+
void set_server()
{
_is_server= true;
void set_server()
{
_is_server= true;
@@
-85,14
+88,14
@@
public:
_is_server= false;
}
_is_server= false;
}
- bool is_server()
+ bool is_server()
const
{
return _is_server;
}
const char *set_hostname(const char *str, size_t size);
{
return _is_server;
}
const char *set_hostname(const char *str, size_t size);
- const char *hostname()
+ const char *hostname()
const
{
return _hostname;
}
{
return _hostname;
}
@@
-122,4
+125,5
@@
private:
bool _is_server;
bool _end;
char _hostname[NI_MAXHOST];
bool _is_server;
bool _end;
char _hostname[NI_MAXHOST];
+ bool _has_hash;
};
};