nn::socket::Shutdown Function
s32 Shutdown(
s32 s,
s32 how
);
| Name | Description | |
|---|---|---|
| in | s | Specifies a socket descriptor. Specify a socket descriptor created using the Socket or Accept function. |
| in | how | Specifies the method to use to shut down.SHUT_RD: Disallow any further receiving.SHUT_WR: Disallow any further sending.SHUT_RDWR: Disallow any further sending or receiving. |
| Value | Description |
|---|---|
| 0 | Process was successful. |
ENETRESET |
Socket library is not initialized. |
EBADF |
Invalid socket descriptor. |
ENOTCONN |
Not connected. |
EINVAL |
Invalid processing. |
This function shuts down some or all socket send/receive processes.
CONFIDENTIAL