- switch (ptr->hosts[x].type)
- {
- case MEMCACHED_CONNECTION_UNKNOWN:
- WATCHPOINT_ASSERT(0);
- possible_rc= MEMCACHED_NOT_SUPPORTED;
- break;
- case MEMCACHED_CONNECTION_UDP:
- possible_rc= udp_connect(ptr, x);
- break;
- case MEMCACHED_CONNECTION_TCP:
- possible_rc= tcp_connect(ptr, x);
- break;
- case MEMCACHED_CONNECTION_UNIX_SOCKET:
- possible_rc= unix_socket_connect(ptr, x);
- break;
- }
- rc= MEMCACHED_SUCCESS;
-
- if (possible_rc != MEMCACHED_SUCCESS)
- {
- WATCHPOINT_ERROR(possible_rc);
- rc= MEMCACHED_SOME_ERRORS;
- }
- }
- }