DatagramPacket.Port Property

Definition

Returns the port number on the remote host to which this datagram is being sent or from which the datagram was received. -or- Sets the port number on the remote host to which this datagram is being sent.

public int Port { [Android.Runtime.Register("getPort", "()I", "")] get; [Android.Runtime.Register("setPort", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getPort", "()I", "")>]
[<set: Android.Runtime.Register("setPort", "(I)V", "")>]
member this.Port : int with get, set

Property Value

Int32

the port number on the remote host to which this datagram is being sent or from which the datagram was received.

Attributes

Remarks

Property getter documentation:

Java documentation for java.net.DatagramPacket.getPort().

Property setter documentation:

Java documentation for java.net.DatagramPacket.setPort(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to