How to use SocketType.Seqpacket?
I was wondering how you would use SocketType.Seqpacket in a server (asynchronous non-threaded). Currently, I've got the following code:
listeningSock = newSocket(AddressFamily.InterNetwork,SocketType.Seqpacket,ProtocolType.Unspecified);// Bind to the local IP AddresslisteningSock.Bind(ipLocal); // Start listening// WARNING - ONLY 10listeningSock.Listen(10); // Now begin receiving connectionslisteningSock.BeginAccept( newAsyncCallback(OnConnectionRequest),null); |
And I get the following exception on the first line of the above code:
System.Net.Sockets.SocketException was unhandled
Message="An address incompatible with the requested protocol was used"
I know that Seqpacket uses the InternetWork AddressFamily, but not sure what ProtocolType it uses, although I've heard it uses SCTP.
So how would I get this code sample to work?
Thanks for helping

