Class CSpoofBase::
ShutdownSockets()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SetLastErrorNext page: StringToLong    Show member index
Public Function Declared in:
SpoofBase.h

'Declaration' icon -- Shortcut to top of page. Declaration

static BOOL ShutdownSockets();

'Description' icon -- Shortcut to top of page. Description

Shutdown the sockets

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.