UdpClient Methods
.NET Framework 4.5
The UdpClient type exposes the following members.
| Name | Description | |
|---|---|---|
|
AllowNatTraversal | Enables or disables Network Address Translation (NAT) traversal on a UdpClient instance. |
|
BeginReceive | Receives a datagram from a remote host asynchronously. |
|
BeginSend(Byte[], Int32, AsyncCallback, Object) | Sends a datagram to a remote host asynchronously. The destination was specified previously by a call to Connect. |
|
BeginSend(Byte[], Int32, IPEndPoint, AsyncCallback, Object) | Sends a datagram to a destination asynchronously. The destination is specified by a EndPoint. |
|
BeginSend(Byte[], Int32, String, Int32, AsyncCallback, Object) | Sends a datagram to a destination asynchronously. The destination is specified by the host name and port number. |
|
Close | Closes the UDP connection. |
|
Connect(IPEndPoint) | Establishes a default remote host using the specified network endpoint. |
|
Connect(IPAddress, Int32) | Establishes a default remote host using the specified IP address and port number. |
|
Connect(String, Int32) | Establishes a default remote host using the specified host name and port number. |
|
Dispose | Releases the unmanaged resources used by the UdpClient and optionally releases the managed resources. |
|
DropMulticastGroup(IPAddress) | Leaves a multicast group. |
|
DropMulticastGroup(IPAddress, Int32) | Leaves a multicast group. |
|
EndReceive | Ends a pending asynchronous receive. |
|
EndSend | Ends a pending asynchronous send. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
JoinMulticastGroup(IPAddress) | Adds a UdpClient to a multicast group. |
|
JoinMulticastGroup(Int32, IPAddress) | Adds a UdpClient to a multicast group. |
|
JoinMulticastGroup(IPAddress, Int32) | Adds a UdpClient to a multicast group with the specified Time to Live (TTL). |
|
JoinMulticastGroup(IPAddress, IPAddress) | Adds a UdpClient to a multicast group. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Receive | Returns a UDP datagram that was sent by a remote host. |
|
ReceiveAsync | Returns a UDP datagram asynchronously that was sent by a remote host. |
|
Send(Byte[], Int32) | Sends a UDP datagram to a remote host. |
|
Send(Byte[], Int32, IPEndPoint) | Sends a UDP datagram to the host at the specified remote endpoint. |
|
Send(Byte[], Int32, String, Int32) | Sends a UDP datagram to a specified port on a specified remote host. |
|
SendAsync(Byte[], Int32) | Sends a UDP datagram asynchronously to a remote host. |
|
SendAsync(Byte[], Int32, IPEndPoint) | Sends a UDP datagram asynchronously to a remote host. |
|
SendAsync(Byte[], Int32, String, Int32) | Sends a UDP datagram asynchronously to a remote host. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
IDisposable.Dispose | Infrastructure. Releases all resources used by the UdpClient. |