Rev | Line | |
---|
[159] | 1 | .\" roar_simple_play.3: |
---|
| 2 | |
---|
| 3 | .TH "roar_socket_nonblock" "3" "July 2008" "RoarAudio" "System Manager's Manual: RoarAuido" |
---|
| 4 | |
---|
| 5 | .SH NAME |
---|
| 6 | roar_socket_nonblock \- Sets blocking state of a socket |
---|
| 7 | |
---|
| 8 | .SH SYNOPSIS |
---|
| 9 | |
---|
| 10 | #include <roaraudio.h> |
---|
| 11 | |
---|
| 12 | int roar_socket_nonblock(int fh, int state); |
---|
| 13 | |
---|
| 14 | .SH "DESCRIPTION" |
---|
| 15 | Sets the blocking mode of a given filehandle. For information on nonblocking IO see \fBopen\fR(2) an look for \fBO_NONBLOCK\fR. |
---|
| 16 | |
---|
| 17 | .SH "PARAMETERS" |
---|
| 18 | .TP |
---|
| 19 | \fBfh\fR |
---|
| 20 | The filehandle to set the new state on. |
---|
| 21 | |
---|
| 22 | .TP |
---|
| 23 | \fBstate\fR |
---|
| 24 | The new state. This may be \fBROAR_SOCKET_BLOCK\fR to sett blocking or \fBROAR_SOCKET_NONBLOCK\fR to set nonblocking mode. |
---|
| 25 | \fBROAR_SOCKET_NONBLOCK\fR is the same as setting \fBO_NONBLOCK\fR within \fBopen\fR(2). |
---|
| 26 | |
---|
| 27 | .SH "RETURN VALUE" |
---|
| 28 | On success these calls return 0. On error, -1 is returned. |
---|
| 29 | |
---|
| 30 | .SH "EXAMPLES" |
---|
| 31 | FIXME |
---|
| 32 | |
---|
| 33 | .SH "SEE ALSO" |
---|
| 34 | \fBopen\fR(2), |
---|
| 35 | \fBlibroar\fR(7), |
---|
| 36 | \fBRoarAudio\fR(7). |
---|
| 37 | |
---|
| 38 | .\" ll |
---|
Note: See
TracBrowser
for help on using the repository browser.