Query: roar_socket_nonblock
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
roar_socket_nonblock(3) System Manager's Manual: RoarAudio roar_socket_nonblock(3)NAMEroar_socket_nonblock - Sets blocking state of a socketSYNOPSIS#include <roaraudio.h> int roar_socket_nonblock(int fh, int state);DESCRIPTIONSets the blocking mode of a given filehandle. For information on nonblocking IO see open(2) an look for O_NONBLOCK.PARAMETERSfh The filehandle to set the new state on. state The new state. This may be ROAR_SOCKET_BLOCK to sett blocking or ROAR_SOCKET_NONBLOCK to set nonblocking mode. ROAR_SOCKET_NONBLOCK is the same as setting O_NONBLOCK within open(2).RETURN VALUEOn success these calls return 0. On error, -1 is returned.EXAMPLESFIXMESEE ALSOopen(2), libroar(7), RoarAudio(7). RoarAudio May 2011 roar_socket_nonblock(3)