![]() |
Close() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SpoofSocket.h |
virtual BOOL Close();
Close the socket
try { //Close the socket //Quit if not ok if (!ValidSocket()) return FALSE; //Close it if (closesocket(GetHandle())==GetErrorCode()) { //Error in closing ? SetLastError("Close"); //Exit return FALSE; } //Set the socket to invalid m_aSpoofSocket=INVALID_SOCKET; //Done return TRUE; } ERROR_HANDLER_RETURN("Close",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |