SocketFlag.OutOfBand usage

V

Volker Gerdes

Is the out-of-band socket option (urgent TCP packets) supported in
..NET CF?

Sending a message with the SocketFlag.OutOfBand Flag set results in a
SocketException (WSAEOPNOTSUPP #10045).
It works neither on the CE .NET Emulator (VS 2003) nor on my .NET 4.2
device.


I used the following code fragment:

IPHostEntry hostEntry=Dns.Resolve("host");
IPEndPoint endPoint=new IPEndPoint(hostEntry.AddressList[0], 5555);

Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
s.Connect(endPoint);
s.Send(System.Text.Encoding.ASCII.GetBytes("socket stream
interrupted by "));
s.Send(new byte[] {0x01}, SocketFlags.OutOfBand);
s.Send(System.Text.Encoding.ASCII.GetBytes("urgent data"));



Did i miss anything? Any special SocketOptions or TCP settings?
My desktop version is working :-(

Thanks in advance & kind Regards,
Volker
 
P

Paul G. Tobey [eMVP]

Best I can tell, out-of-band data is not supported in native code, let alone
managed code.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top