Class CUDPRelay::
Stop()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SendDataNext page: Custom Code in Header Before Includes    Show member index
Public Function Declared in:
UDPRelay.h

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

virtual BOOL Stop();

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

Stop the relay

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Are we created?
    if (!m_bCreated)
        return TRUE;

    //Delete the listener
    m_pSocket->DeleteSocketFromThread();
    m_pSocket=NULL;

    {
        //Lock
        CCriticalAutoRelease aRelease(m_pCSection);

        //Iterate the data
        SocketMap::iterator aIterator;
        aIterator=m_aSocketMap.begin();
        while (aIterator!=m_aSocketMap.end())
        {
            //Signal the socket
            aIterator->second->DeleteSocketFromThread();

            //Erase
            aIterator=m_aSocketMap.erase(aIterator);
        }
    }

    //We are not created
    m_bCreated=FALSE;

    //Done
    return TRUE;
}
ERROR_HANDLER_RETURN("Stop",FALSE)

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CRelay  |  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.