|
XSocket API
2.0
XIA Socket Library
|
Xfcntl() - manipulate a socket. More...
#include "Xsocket.h"Functions | |
| int | Xfcntl (int sockfd, int cmd,...) |
| manipulate an Xsocket More... | |
| int Xfcntl | ( | int | sockfd, |
| int | cmd, | ||
| ... | |||
| ) |
Xfcntl() performs a subset of the fcntl() system call supporting the operations described below on the open Xsocket sockfd. The operation is determined by cmd.
Xfcntl() can take an optional third argument. Whether or not this argument is required is determined by cmd. The required argument type is an int or void if the argument is not required.
| sockfd | a file descriptor create by Xsocket() |
| cmd | the command to execute F_GETFL: Get the socket's status flags F_SETFL: Set the socket's flags. Currently only O_NONBLOCK is supported. Other flags are ignored but do not cause an error. |
| arg | the flag to set if cmd == F_GETFL, otherwise omitted |
1.8.11