nn::socket::SetSockOpt Function
s32 SetSockOpt(
s32 s,
s32 level,
s32 optname,
const void* optval,
s32 optlen
);
| Name | Description | |
|---|---|---|
| in | s | Specifies the socket descriptor. Specify a socket descriptor created using the Socket or Accept function. |
| in | level | Specifies the target protocol layer (SocketLevel). |
| in | optname | Specifies the target options (SocketOptionType). |
| out | optval | Specifies a pointer to the buffer with the option data. |
| inout | optlen | Specifies the optval buffer length for optname. |
| Value | Description |
|---|---|
| 0 | Process was successful. |
ENETRESET |
Socket library is not initialized. |
EBADF |
Invalid socket descriptor. |
EINVAL |
Invalid processing. |
Changes a socket's internal settings and internal state.
CONFIDENTIAL