int sock_size;
socklen_t sock_length= sizeof(int);
+ /* REFACTOR */
/* We just try the first host, and if it is down we return zero */
- if ((memcached_connect(ptr, 0)) != MEMCACHED_SUCCESS)
+ if ((memcached_connect(&ptr->hosts[0])) != MEMCACHED_SUCCESS)
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,
int sock_size;
socklen_t sock_length= sizeof(int);
+ /* REFACTOR */
/* We just try the first host, and if it is down we return zero */
- if ((memcached_connect(ptr, 0)) != MEMCACHED_SUCCESS)
+ if ((memcached_connect(&ptr->hosts[0])) != MEMCACHED_SUCCESS)
return 0;
if (getsockopt(ptr->hosts[0].fd, SOL_SOCKET,