Syntax
int vm_soc_shutdown(
    int sock, 
    int how
);
ContentsIndex
PreviousUpNext
vm_soc_shutdown
Example
Syntax
int vm_soc_shutdown(
    int sock, 
    int how
);
Description

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
Parameters 
Description 
int sock 
[IN] Socket descriptor. 
int how 
[IN] Specifies shutdown read, write or both. 
Return Values
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. 
Example
INT handle;
vm_soc_shutdown((kal_int8) handle, VM_SOC_SHUT_WR);
File

vmsock.h

Group
Created with a commercial version of 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.