Share via


DatagramPacket.SocketAddress Property

Definition

Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from. -or- Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.

public Java.Net.SocketAddress? SocketAddress { [Android.Runtime.Register("getSocketAddress", "()Ljava/net/SocketAddress;", "")] get; [Android.Runtime.Register("setSocketAddress", "(Ljava/net/SocketAddress;)V", "")] set; }
[<get: Android.Runtime.Register("getSocketAddress", "()Ljava/net/SocketAddress;", "")>]
[<set: Android.Runtime.Register("setSocketAddress", "(Ljava/net/SocketAddress;)V", "")>]
member this.SocketAddress : Java.Net.SocketAddress with get, set

Property Value

the SocketAddress

Attributes

Remarks

Property getter documentation:

Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.

Added in 1.4.

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

Property setter documentation:

Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram is being sent.

Added in 1.4.

Java documentation for java.net.DatagramPacket.setSocketAddress(java.net.SocketAddress).

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