nn::socket::Shutdown Function

Syntax

s32 Shutdown(
     s32 s,
     s32 how
);

Arguments

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.

Return Values



Value Description
0 Process was successful.
ENETRESET Socket library is not initialized.
EBADF Invalid socket descriptor.
ENOTCONN Not connected.
EINVAL Invalid processing.

Description

This function shuts down some or all socket send/receive processes.

See Also


Revision History

2010/06/14
Initial version.

CONFIDENTIAL