socket.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.HeaderIncluded,1);
byte []IN = new byte[4]{1, 0, 0, 0};
byte []OUT = new byte[4];
int SIO_RCVALL = unchecked((int)0x98000001);
int ret_code = socket.IOControl(IOControlCode.ReceiveAll, null, null);
ret_code = OUT[0] + OUT[1] + OUT[2] + OUT[3];
if(ret_code != 0)
ret_val = false;
"Tom P" <To...@discussions.microsoft.com> wrote in message
news:6A1B8517-4E75-4D21...@microsoft.com...
socket.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.HeaderIncluded,1);
byte []IN = new byte[4]{1, 0, 0, 0};
byte []OUT = new byte[4];
int SIO_RCVALL = unchecked((int)0x98000001);
int ret_code = socket.IOControl(IOControlCode.ReceiveAll, IN, OUT);
ret_code = OUT[0] + OUT[1] + OUT[2] + OUT[3];
if(ret_code != 0)
ret_val = false;
But in either case I get the same error, 10022. I tried different
values for the parameters to IOControl(), and still get the same
error.
Can anybody help clear this up as to why I'm getting this error?
Thx,
T
"Tom P" <To...@discussions.microsoft.com> wrote in message
news:CAF61287-C25A-4C6F...@microsoft.com...