![]() |
AddOption_SegmentSize() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: TCPSocket.h |
void AddOption_SegmentSize( unsigned short usMax);
Add options Segment size
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")
![]() |
Site content copyright © 2001 Barak Weichselbaum. See the About page for additional notices. This page last updated: 24 Apr 2001. |