memc(NULL),
rc(rc_arg),
_is_server(false),
- _end(false)
+ _end(false),
+ _has_hash(false)
{
_hostname[0]= 0;
buf= option_string;
_end= true;
}
+ bool set_hash(memcached_hash_t hash);
+
void set_server()
{
_is_server= true;
_is_server= false;
}
- bool is_server()
+ bool is_server() const
{
return _is_server;
}
const char *set_hostname(const char *str, size_t size);
- const char *hostname()
+ const char *hostname() const
{
return _hostname;
}
bool _is_server;
bool _end;
char _hostname[NI_MAXHOST];
+ bool _has_hash;
};