![]() |
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
tOptionType OT;
//Get the option
OT=TCPOptions_MAX_Segment;
//Add it to buffer
AddToBuffer((char*)&OT,sizeof(OT));
//Add length
OT=TCPOptions_MAX_Segment_Length;
AddToBuffer((char*)&OT,sizeof(OT));
//Add segment size
unsigned short usOT;
usOT=htons(usMax);
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 © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 27 Jun 2001. |