shutdown socket

636 단어 shutdown
The shutdown function disables sends or receives on a socket.

Syntax 

int shutdown(  __in  SOCKET s,  __in  int how);

Parameters


s [in]
A descriptor identifying a socket.
how [in]
A flag that describes what types of operation will no longer be allowed. Possible values for this flag are listed in theWinsock2.h header file.
Value
Meaning
SD_RECEIVE
0
Shutdown receive operations.
SD_SEND

Shutdown send operations.
SD_BOTH

Shutdown both send and receive operations.

좋은 웹페이지 즐겨찾기