What Socket Option are supported by CF ?

G

Guest

Hi,

I am writing a streaming application using a UDP datagram socket. I am
interested in customizing a lot of the socket options! I tried a sample
program to test the values of the most interesting options... and I have got
a lot of exceptions with the message : "An unknown, invalid, or unsupported
option or level was specified in a getsockopt or setsockopt call". ... I
deduced that these options are not supported by CF.. I would like to check
with you that these options are not supported, or that it is my sample
program which is wrong. Here it is :

//Create a datagram/udp socket.
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram,
ProtocolType.Udp);


socket.Bind(new IPEndPoint(IPAddress.Any, port));


object nc = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.NoChecksum);
object bsdUrg = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.BsdUrgent);
object dontlinger = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.DontLinger);
object expedited = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.Expedited);
object nodelay = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.NoDelay);
object sendBuf = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.SendBuffer);
object rcvBuf = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.ReceiveBuffer);
object tos = socket.GetSocketOption(SocketOptionLevel.Socket,
SocketOptionName.TypeOfService);

Not supported :
NoChecksum, BsdUrgent, DontLinger, Expedited, NoDelay, TypeOfService

Supported (working in my code) :
ReceiveBuffer, SendBuffer

Is there a full listening of what's in what's out for Windows CE and .NET CF ?
It is a pity these options are not in... they are interesting.

Thanks in advance!
 

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