简体   繁体   中英

What is the advantages and disadvantages using UdpClient over Socket

I'm currently using Socket class on both server and client to establish udp connection, right now it is working very well but I saw there was another way of using udp sockets, the UdpClient class. My question is what should I use for 3d multiplayer game? Is it affects performance? etc..... Thanks in advance!

UdpClient is wrapper class written on Socket class. It is written specifically to use UDP features of socket. you can access the socket instance of UdpClass with property named Client. Like TcpClient is also written on Socket which is used for TCP communication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM