c# - UDP Socket Listener -


when try make udp socket listener on server , accept connection client erroe when call voicesocket.listen(5); "the attempted operation not supported type of object referenced" code:

voicesocket = new socket(addressfamily.internetwork, sockettype.dgram, protocoltype.udp);         voicesocket.bind(new ipendpoint(ipaddress.any, vport));         voicesocket.listen(5);         voicesocket.beginaccept(voiceaceptcallback, null); 

udp (protocoltype.udp) connection-less protocol, send or receive data w/o idea if there's else on other end of line.

probably need tcp


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -