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

Connecct to a yrmcds server.

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

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