Class CIPOptions::
AddOption_RecordRoute()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: AddOption_NothingNext page: AddOption_Route    Show member index
Public Function Declared in:
SpoofSocket.h

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

void AddOption_RecordRoute(
    int iMaxRoutes);

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

try
{
    //Option for strict routine
    //Add option strict route
    OptionType aOptionType;

    //Get the option
    aOptionType=GetOption(IPOption_DONT_COPY,
                          IPOption_CONTROL,
                          IPOption_RECORD_ROUTE);

    //Add it to buffer
    AddToBuffer((char*)&aOptionType,
                sizeof(aOptionType));

    //Add the length
    aOptionType=iMaxRoutes*4+IPOption_STRICT_ROUTING_LENGTH;
    AddToBuffer((char*)&aOptionType,
                sizeof(aOptionType));

    //Add the pointer
    aOptionType=IPOption_STRICT_ROUTING_POINTER;
    AddToBuffer((char*)&aOptionType,
                sizeof(aOptionType));

    char cNothing[IPOption_SIZE]="";
    AddToBuffer(cNothing,
                iMaxRoutes*4);
}
ERROR_HANDLER("AddOption_RecordRoute")

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