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

Shutdown the receiving end of the socket.

Parameters
cA pointer to yrmcds_cnt.
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_cnt_recv.

Note that interrupted yrmcds_cnt_recv will return YRMCDS_DISCONNECTED.

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