Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>
sp_getopt - retrieve an endpoint option
#include <xio/sp.h>
int sp_getopt (int s, int opt, void *optval, int *optlen);
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
The provided endpoint is invalid.
The option is unknown or option is invalid.
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>