roar_socket_nonblock3
Sets blocking state of a socket
Usage
#include <roaraudio.h>
int roar_socket_nonblock(int fh, int state);
Overview
Sets the blocking mode of a given filehandle. For information on nonblocking IO see open(2) an look for O_NONBLOCK.
Parameters
fh-
The filehandle to set the new state on.
state-
The new state. This may be
ROAR_SOCKET_BLOCKto sett blocking orROAR_SOCKET_NONBLOCKto set nonblocking mode.ROAR_SOCKET_NONBLOCKis the same as settingO_NONBLOCKwithin open(2).
Return value
On success these calls return 0. On error, -1 is returned.
Examples
FIXME
Releases
6 releases since Debian 6.0 (Squeeze); the text changed 1 time.