#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 );
s |
Socket descriptor. | ||||||
how |
Specifies the type of shutdown process.
|
Note: Only SOC_SHUT_RDWR
is supported.
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.
This function shuts down socket send and receive processes.
12/12/2005 Modified Description
9/13/2005 Initial version.