Class CTraceRouteSocket::
TraceRoute()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: TraceRouteNext page: Custom Code in Header Before Includes    Show member index
Public Function Declared in:
TraceRouteSocket.h

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

virtual BOOL TraceRoute(
    IP aDestinationAddress,
    DWORD dwTimeout,
    unsigned char ucTTL=30);

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

try
{
    if (!m_bTraceDone)
        return FALSE;

    //Starting TTL
    m_ucTTL=1;

    //Max TLL
    m_ucMaxTTL=ucTTL;

    //Trace not done
    m_bTraceDone=FALSE;

    //Clear the data
    m_aData.clear();

    //Save the timeout
    m_dwTimeout=dwTimeout;

    //Save the address
    m_aFinalAddress=aDestinationAddress;

    //And ping
    return Ping(aDestinationAddress,
                dwTimeout);
}
ERROR_HANDLER_RETURN("TraceRoute",FALSE)

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

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