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

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

BOOL ReSetTimeout(
    const TimerID& rTimerID);

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

Refresh an existing timeout

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

//Check if anyone is smartass
if (!rTimerID.iTimerID)
{
    //Report it
    ReportError("ReSetTimeout","Someone send an empty TimerID!");

    //And exit
    return FALSE;
}

try
{
    //Reset the timer
    int iResult;
    iResult=SetTimer(m_pThreadData[rTimerID.iIndex-1].hWindowHandle,
                     rTimerID.iTimerID,
                     rTimerID.iMS,
                     NULL);

    //Check the result
    if (!iResult)
        ReportError("ReSetTimeout","Failed to reset the timeout!");

    //Done
    return iResult!=0;
}
ERROR_HANDLER_RETURN("ReSetTimeout",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.