![]() |
ShutdownSockets() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: SpoofBase.h |
Declarationstatic BOOL ShutdownSockets();
DescriptionShutdown the sockets
Function Body
//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)
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |