UdpClient Members

The following tables list the members exposed by the UdpClient type.

Public Constructors

Name Description
Public Method UdpClient Overloaded. Creates a new instance of the UdpClient class.

Public Properties

Name Description
Public Property Available Gets the amount of data received from the network that is available to read.
Public Property Client Gets or sets the underlying network socket.
Public Property DontFragment Gets or sets a Boolean value that specifies whether the UdpClient object allows Internet Protocol (IP) datagrams to be fragmented.
Public Property EnableBroadcast Gets or sets a Boolean value that specifies whether the UdpClient may send or receive broadcast packets.
Public Property ExclusiveAddressUse Gets or sets a Boolean value that specifies whether the UdpClient object allows only one client to use a port.
Public Property MulticastLoopback Gets or sets a boolean value that specifies whether outgoing multicast packets are delivered to the sending application.

Protected Properties

Name Description
Protected Property Active Gets or sets a value indicating whether a default remote host has been established.

Public Methods

Name Description
Public Method Close Closes the UDP connection.
Public Method Connect Overloaded. Establishes a default remote host.
Public Method Dispose Overloaded. Releases the unmanaged resources used by the UdpClient object.
Public Method DropMulticastGroup Leaves a multicast group.
Public Method JoinMulticastGroup Overloaded. Adds the UdpClient object to a multicast group.
Public Method Receive Returns a UDP datagram that was sent by a remote host.
Public Method Send Overloaded. Sends a UDP datagram to a remote host.

See Also

Reference

UdpClient Class
System.Ext.Net.Sockets Namespace