![]() |
ShutdownSockets() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: SpoofBase.h |
static BOOL ShutdownSockets();
Shutdown the sockets
//Only if initialized if (!m_bInitialized) return TRUE; try { //Do we have a thread? if (m_pThread) { //Delete it delete m_pThread; m_pThread=NULL; } //Delete the CS delete m_pCSection; m_pCSection=NULL; //Notify shutdown class if (m_pShutdownClass) { m_pShutdownClass->NotifyShutdown(); delete m_pShutdownClass; } if (WSACleanup()==GetErrorCode()) return FALSE; //Not initialized anymore m_bInitialized=FALSE; //Done return TRUE; } ERROR_HANDLER_STATIC_RETURN(CSpoofBase_Class,"ShutdownSockets",FALSE)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |