libyrmcds
memcached/yrmcds client library for C
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
yrmcds_error yrmcds_connect ( yrmcds c,
const char *  node,
uint16_t  port 
)

Connecct to a memcached/yrmcds server.

Parameters
cA pointer to yrmcds.
nodeThe server name.
portTCP port number of the server (normally 11211).
Returns
0 if connected successfully. Other values indicate an error.

This function connects to a memcached/yrmcds server and initializes c. TCP_NODELAY flag will be set for the returned socket.