Export (0) Print
Expand All

UdpClient Methods

The UdpClient type exposes the following members.

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

  Name Description
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the UdpClient.
Top
Show:
© 2014 Microsoft