NAME

sp_getopt - retrieve an endpoint option

SYNOPSIS

#include <xio/sp.h>

int sp_getopt (int s, int opt, void *optval, int *optlen);

DESCRIPTION

RETURN VALUE

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

ERRORS

EBADF

The provided endpoint is invalid.

EINVAL

The option is unknown or option is invalid.

EXAMPLE

SEE ALSO

sp_endpoint(3) sp(7)

AUTHORS

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