Udostępnij za pośrednictwem


DatagramSocket.LocalSocketAddress Property

Definition

Returns the address of the endpoint this socket is bound to.

public virtual Java.Net.SocketAddress? LocalSocketAddress { [Android.Runtime.Register("getLocalSocketAddress", "()Ljava/net/SocketAddress;", "GetGetLocalSocketAddressHandler")] get; }
[<get: Android.Runtime.Register("getLocalSocketAddress", "()Ljava/net/SocketAddress;", "GetGetLocalSocketAddressHandler")>]
member this.LocalSocketAddress : Java.Net.SocketAddress

Property Value

a SocketAddress representing the local endpoint of this socket, or null if it is closed or not bound yet.

Attributes

Remarks

Returns the address of the endpoint this socket is bound to.

Added in 1.4.

Java documentation for java.net.DatagramSocket.getLocalSocketAddress().

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