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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -