SOC_Shutdown

C Specification

#include <nitroWiFi/soc.h>
#define SOC_SHUT_RD       0
#define SOC_SHUT_WR       1
#define SOC_SHUT_RDWR     2
int SOC_Shutdown ( int s, int how );

Arguments

s Socket descriptor.
how Specifies the type of shutdown process.
SOC_SHUT_RD Disables further reception processing.
SOC_SHUT_WR Disables further transmission processing.
SOC_SHUT_RDWR Disables further transmission and reception processing.

Note: Only SOC_SHUT_RDWR is supported.

Return Values

0 or higher Successful.
SOC_EINVAL Invalid processing.
SOC_EMFILE Cannot create any more socket descriptors.
SOC_ENETRESET Socket library is not initialized.
SOC_ENOBUFS Insufficient resources.
SOC_ENOTCONN Not connected.

Note: Additional errors may be generated and returned in future library releases. Please treat all negative return values as general errors.

Description

This function shuts down socket send and receive processes.

See Also

SOC_Close

Revision History

12/12/2005 Modified Description
9/13/2005 Initial version.