System.Net.Sockets.UdpClient
namespace System.Net.Sockets
{
public class UdpClient : IDisposable
{
protected bool Active { get; set; }
public int Available { get; }
public Socket Client { get; set; }
public bool DontFragment { get; set; }
public bool EnableBroadcast { get; set; }
public bool ExclusiveAddressUse { get; set; }
public bool MulticastLoopback { get; set; }
public short Ttl { get; set; }
public UdpClient();
public UdpClient(int port);
public UdpClient(int port, AddressFamily family);
public UdpClient(IPEndPoint localEP);
public UdpClient(AddressFamily family);
public UdpClient(string hostname, int port);
public void AllowNatTraversal(bool allowed);
public IAsyncResult BeginReceive(AsyncCallback requestCallback, object state);
public IAsyncResult BeginSend(byte[] datagram, int bytes, AsyncCallback requestCallback, object state);
public IAsyncResult BeginSend(byte[] datagram, int bytes, IPEndPoint endPoint, AsyncCallback requestCallback, object state);
public IAsyncResult BeginSend(byte[] datagram, int bytes, string hostname, int port, AsyncCallback requestCallback, object state);
public void Close();
public void Connect(IPAddress addr, int port);
public void Connect(IPEndPoint endPoint);
public void Connect(string hostname, int port);
public void Dispose();
protected virtual void Dispose(bool disposing);
public void DropMulticastGroup(IPAddress multicastAddr);
public void DropMulticastGroup(IPAddress multicastAddr, int ifindex);
public byte[] EndReceive(IAsyncResult asyncResult, ref IPEndPoint remoteEP);
public int EndSend(IAsyncResult asyncResult);
public void JoinMulticastGroup(int ifindex, IPAddress multicastAddr);
public void JoinMulticastGroup(IPAddress multicastAddr);
public void JoinMulticastGroup(IPAddress multicastAddr, int timeToLive);
public void JoinMulticastGroup(IPAddress multicastAddr, IPAddress localAddress);
public byte[] Receive(ref IPEndPoint remoteEP);
public Task<UdpReceiveResult> ReceiveAsync();
public int Send(byte[] dgram, int bytes);
public int Send(byte[] dgram, int bytes, IPEndPoint endPoint);
public int Send(byte[] dgram, int bytes, string hostname, int port);
public Task<int> SendAsync(byte[] datagram, int bytes);
public Task<int> SendAsync(byte[] datagram, int bytes, IPEndPoint endPoint);
public Task<int> SendAsync(byte[] datagram, int bytes, string hostname, int port);
}
}