Class CRealTimeTraceRouteSocket::
GetPortStart()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: GetMaxHopsNext page: GetResolvers    Show member index
Private Function Declared in:
RealTimeTraceRouteSocket.h

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

static unsigned short GetPortStart();

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

Allocate start of ID range

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

try
{
    //Lock the global CS
    CCriticalAutoRelease aRelease(CSpoofBase::GetGlobalCriticalSection(),TRUE);

    //Take the data
    unsigned short usPort;
    usPort=m_sPortStart;

    //Increment it
    ++m_sPortStart;

    //Did we exceed ?
    if (m_sPortStart>=65000)
        m_sPortStart=0;

    //Done
    return usPort;
}
ERROR_HANDLER_STATIC_RETURN(CRealTimeTraceRouteSocket_Class,"GetPortStart",0)

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