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.
相关问题
- Sorting 3 numbers without branching [closed]
- Multiple sockets for clients to connect to
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
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 aSend
/BeginSend
overload that specifies the remote end point.Check out the following sample codes:
Listener
Simple UDP Client