int vm_soc_shutdown( int sock, int how );
int vm_soc_shutdown( int sock, int how );
Shutdowns the connection in specific side, such as reading side, writing side, or both. In a half read situation, vm_soc_shutdown() discards the received data that the application has not yet read and any further incoming data. In a half write situation of TCP, the remaining data will be sent first, then the FIN will be sent to close the connection.
|
Parameters |
Description |
|
int sock |
[IN] Socket descriptor. |
|
int how |
[IN] Specifies shutdown read, write or both. |
|
Return Values |
Description |
|
VM_SOC_SUCCESS |
Success. |
|
VM_SOC_INVALID_SOCKET |
Invalid socket descriptor. |
|
VM_SOC_INVAL |
Invalid value, specified in how. |
|
VM_SOC_ERROR |
Unspecified error. |
INT handle; vm_soc_shutdown((kal_int8) handle, VM_SOC_SHUT_WR);
vmsock.h
Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at
support@toolsfactory.com.