NAME

xsetsockopt - set a socket option

SYNOPSIS

#include <xio/socket.h>

int xsetsockopt (int s, int level, int opt, void *optval, size_t *optlen);

for more details. see xgetsockopt[3]

RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

ERRORS

EBADF

The provided socket is invalid.

EINVAL

The option is unknown or option is invalid.

SEE ALSO

xsocket(3) xgetsockopt(3) xio(7)

AUTHORS

Dong Fang <yp.fangdong@gmail.com>
Martin Sustrik <sustrik@250bpm.com>