![]() |
AddOption_Stream() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Function |
Declared in: SpoofSocket.h |
Declaration
void AddOption_Stream(
unsigned short usStreamID);
Function Body
try
{
//Add option security
tOptionType OT;
//Get the option
OT=GetOption(IPOption_COPY,IPOption_CONTROL,IPOption_STREAM);
//Add it to buffer
AddToBuffer((char*)&OT,sizeof(OT));
//Add length
OT=IPOption_STREAM_LENGTH;
AddToBuffer((char*)&OT,sizeof(OT));
//Add options
unsigned short usnStreamID;
usnStreamID=htons(usStreamID);
AddToBuffer((char*)&usnStreamID,sizeof(usnStreamID));
}
ERROR_HANDLER("AddOption_Stream")
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. |