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
..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