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 type of shutdown method.
Disallow any further receiving after SHUT_RD.
Disallow any further sending after SHUT_WR.
SHUT_RDWR: Disallow any further sending or receiving.

Return Values



Value Description
0 Process was successful.
ENETRESET Socket library is not initialized.
ENETDOWN The network is not available.
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