hi,..
im trying to create a listener socket for the UDP sockets.. on which i transfer video...
but when i declare the video socket and bind it to a IPEndPoitn .. then try to listen i get an exception..
m_VideoSocket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
int prt = 10002;
IPEndPoint jsd = new IPEndPoint(IPAddress.Any, prt);
m_VideoSocket.Bind(jsd);
m_VideoSocket.Listen(10);
the exception says:"the attempted operation is not supported for the type of object referenced".
whats goin on here!! is it not possible to create a listener socket if the protocol type is UDP!
thnx.

udp socket.listen() issue!!!
JGttttt
http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx
You do bind and listen for TCP, for UDP just do Connect
m_VideoSocket.Connect(jsd, port)
Mariya
John.Doe
Please see the link provided above. With UDP sockets you simply create the socket and then either:
1. Connect the socket and use send/receive
2. Do not connect and use sendTo and receiveFrom methods.
UDP sockets are not connection oriented and thus listening for a connection is an invalid operation on such a socket
ReneeC
R1ZWAN
Mike meant the link in my post above his. Here it is again:
http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx
Mariya