Class CSocketThreadManager::
DecreaseTimeoutCount()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: DecreaseSocketCountNext page: GetClassName    Show member index
Public Function Declared in:
SocketThreadManager.h

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

void DecreaseTimeoutCount(
    HWND hWindowHandle,
    BOOL bFreeze=FALSE);

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

Less socket in the system

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

try
{
    //First find the window handle
    int iIndex;
    iIndex=GetIndexByHWND(hWindowHandle);

    //Check it's valid
    if (!iIndex)
        return;

    //Enter the critical section
    CCriticalAutoRelease aRelease(m_pCSection);

    //Decrement the socket count
    if (m_pThreadData[iIndex-1].iTimeoutCount>0)
    {
        --m_pThreadData[iIndex-1].iTimeoutCount;
        m_pThreadData[iIndex-1].bFreeze=bFreeze;
    }
}
ERROR_HANDLER("DecreaseTimeoutCount")

'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.