Class CTCPOptions::
AddOption_SegmentSize()
Base ClassesConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: AddOption_NothingNext page: CTCPOptions    Show member index
Public Function Declared in:
TCPSocket.h

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

void AddOption_SegmentSize(
    unsigned short usMax);

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

Add options Segment size

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

try
{
    //Add option Max segment
    OptionType aOptionType;

    //Get the option
    aOptionType=TCPOptions_MAX_Segment;

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

    //Add length
    aOptionType=TCPOptions_MAX_Segment_Length;
    AddToBuffer((char*)&aOptionType,
                sizeof(aOptionType));

    //Add segment size
    unsigned short usOT;
    usOT=htons(usMax);

    //Add it
    AddToBuffer((char*)&usOT,
                sizeof(usOT));
}
ERROR_HANDLER("AddOption_SegmentSize")

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

Class Overview Class Overview  |  Protected base class CIPOptions  |  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.