Java.Net.DatagramPacket Members

The members of Java.Net.DatagramPacket are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructs a new DatagramPacket object to receive data up to length bytes.
Constructs a new DatagramPacket object to send data to the address sockAddr.
Constructs a new DatagramPacket object to receive data up to length bytes with a specified buffer offset.
Constructs a new DatagramPacket object to send data to the port aPort of the address host.
Constructs a new DatagramPacket object to send data to the address sockAddr.
Constructs a new DatagramPacket object to send data to the port aPort of the address host.

Public Properties

AddressInetAddress. Gets the sender or destination IP address of this datagram packet.
Lengthint. Gets the length of the data stored in this datagram packet.
[read-only]
Offsetint. Gets the offset of the data stored in this datagram packet.
Portint. Gets the port number of the target or sender host of this datagram packet.
SocketAddressSocketAddress. Gets the host address and the port to which this datagram packet is sent as a SocketAddress object.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetData() : byte[]
Gets the data of this datagram packet.
SetData(byte[])
Sets the data buffer for this datagram packet.
SetData(byte[], int, int)
Sets the data buffer for this datagram packet.