{
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, x);
- if (memcached_instance_response_count(instance))
+ if (instance->response_count())
{
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
memcached_io_write(instance);
}
- while(memcached_instance_response_count(instance))
+ while(instance->response_count())
{
(void)memcached_response(instance, buffer, MEMCACHED_DEFAULT_COMMAND_SIZE, &ptr->result);
}
};
- if (memcached_instance_response_count(instance) == 0)
+ if (instance->response_count() == 0)
{
rc= memcached_connect(instance);
failures_occured_in_sending= true;
continue;
}
- WATCHPOINT_ASSERT(instance->cursor_active == 0);
+ WATCHPOINT_ASSERT(instance->cursor_active_ == 0);
memcached_instance_response_increment(instance);
- WATCHPOINT_ASSERT(instance->cursor_active == 1);
+ WATCHPOINT_ASSERT(instance->cursor_active_ == 1);
}
else
{
{
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, x);
- if (memcached_instance_response_count(instance))
+ if (instance->response_count())
{
/* We need to do something about non-connnected hosts in the future */
if ((memcached_io_write(instance, "\r\n", 2, true)) == -1)
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, server_key);
- if (memcached_instance_response_count(instance) == 0)
+ if (instance->response_count() == 0)
{
rc= memcached_connect(instance);
if (memcached_failed(rc))
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, x);
initialize_binary_request(instance, request.message.header);
- if (memcached_instance_response_count(instance))
+ if (instance->response_count())
{
if (memcached_io_write(instance) == false)
{
org::libmemcached::Instance* instance= memcached_instance_fetch(ptr, server);
- if (memcached_instance_response_count(instance) == 0)
+ if (instance->response_count() == 0)
{
rc= memcached_connect(instance);