![]() |
AddOption_SegmentSize() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: TCPSocket.h |
Declaration
void AddOption_SegmentSize(
unsigned short usMax);
DescriptionAdd options Segment size
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
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. |