Class CAsyncSocket::
SocketClosing()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: SocketClosedNext page: SocketConnected    Show member index
Protected Function Declared in:
AsyncSocket.h

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

void SocketClosing();

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

Close the timeout if needed

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

try
{
    //Are we valid
    if (m_bClosing ||
        GetAsyncHandle()==INVALID_SOCKET)
        return;

    //Indicate we are closing
    m_bClosing=TRUE;

    //Do we have a regular timer
    if (m_bTimeout)
        KillTimer();

    //Do we have a system timer ?
    if (m_aTimerID.iTimerID)
        KillSystemTimer();

    //Kill all the messages
    m_iMsg=0;
    m_lEvent=0;

    //Set it
    if (WSAAsyncSelect(GetAsyncHandle(),
                       GetWindowHandle(),
                       0,
                       0))
        SetLastError("SocketClosing");
}
ERROR_HANDLER("SocketClosing")

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

Class Overview Class Overview  |  Protected base class CSpoofBase  |  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.