| CSpoofBase:: ShutdownSockets() |

Public Function | Declared in: SpoofBase.h

## Declaration

    static BOOL ShutdownSockets();

## Description

Shutdown the sockets

## Function Body

    //Only if initialized
    if (!m_Initialized)
        return TRUE;

    try
    {
        delete m_pCSection;

        //Notify shutdown class
        if (m_pShutdownClass)
        {
            m_pShutdownClass->NotifyShutdown();
            delete m_pShutdownClass;
        }

    #ifdef WIN32
        if (WSACleanup()==SOCKET_ERROR)
            return FALSE;
    #endif

        m_Initialized=FALSE;
        return TRUE;
    }
    catch (...)
    {
        return FALSE;
    }

## See Also

Class Overview | Hierarchy Chart

This web site was generated using Surveyor V4.50.811.1. Click here for more information. | Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001.