libyrmcds
memcached/yrmcds client library for C
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups Pages
yrmcds_error yrmcds_shutdown ( yrmcds c)

Shutdown the receiving end of the socket.

Parameters
cA pointer to yrmcds.
Returns
0 if c is valid. Other values indicate an error.

This function simply calls shutdown system call with SHUT_RD . This can be used to interrupt a thread waiting in yrmcds_recv.

Note that interrupted yrmcds_recv will return YRMCDS_DISCONNECTED.

See Also
https://github.com/cybozu/libyrmcds/issues/8