![]() |
Shutdown() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SpoofSocket.h |
BOOL Shutdown( SocketShutdown eHow);
Close one way of the socket (receive,send,both)
if (!CheckSocketValid()) return FALSE; try { int iHow; //Convert the how to a real flag if (eHow==ssReceive) iHow=SD_RECEIVE; else if (eHow==ssSend) iHow=SD_SEND; else iHow=SD_BOTH; //Do it if (shutdown(GetHandle(),iHow)) { //Report it SetLastError("Shutdown"); //Exit return FALSE; } //Done return TRUE; } ERROR_HANDLER_RETURN("Shutdown",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |