Can I make UDP server and client using UdpClient
class? And I need to send an Image from the server to all Clients. Can some show me a code sample. I'm new to this.
System.Net.Sockets.UdpClient
is tricky. Some of the constructors specify the local end point, while others specify the remote end point. To establish two way communication, use a constructor that specifies the local end point.
Specify the default remote end point with Connect
, or use a Send
/ BeginSend
overload that specifies the remote end point.
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.