Condividi tramite


Socket.InetAddress Property

Definition

Returns the address to which the socket is connected.

public virtual Java.Net.InetAddress? InetAddress { [Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")] get; }
[<get: Android.Runtime.Register("getInetAddress", "()Ljava/net/InetAddress;", "GetGetInetAddressHandler")>]
member this.InetAddress : Java.Net.InetAddress

Property Value

the remote IP address to which this socket is connected, or null if the socket is not connected.

Attributes

Remarks

Returns the address to which the socket is connected.

If the socket was connected prior to being #close closed, then this method will continue to return the connected address after the socket is closed.

Java documentation for java.net.Socket.getInetAddress().

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