nn::socket::Fcntl Function
s32 Fcntl(
s32 s,
s32 cmd,
s32 val
);
| Name | Description | |
|---|---|---|
| in | s | Specifies a socket descriptor. Specify a socket descriptor created using the Socket or Accept function. |
| in | cmd | Specifies what to do with the status flags.F_GETFL: F_SETFL: Change the status flags. |
| in | val | Specifies additional arguments required for certain actions. If cmd is F_GETFL, there are no additional arguments required and this argument is ignored. If cmd is F_SETFL, this specifies the status flags to set. This is either 0 or a bitwise OR of the following values.O_NONBLOCK: Sets the socket to non-blocking mode. If this flag is not specified, the socket enters blocking mode. Note that sockets are set to blocking mode by default at time of creation. |
0 if successful. Sets or gets socket status flags.
CONFIDENTIAL