Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>
xsetsockopt - set a socket option
#include <xio/socket.h>
int xsetsockopt (int s, int level, int opt, void *optval, size_t *optlen);
for more details. see xgetsockopt[3]
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
The provided socket is invalid.
The option is unknown or option is invalid.
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>