udp socket.listen() issue!!!

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.



Answer this question

udp socket.listen() issue!!!