DatagramSocket.IsConnected Property

Definition

Returns the connection state of the socket.

public virtual bool IsConnected { [Android.Runtime.Register("isConnected", "()Z", "GetIsConnectedHandler")] get; }
[<get: Android.Runtime.Register("isConnected", "()Z", "GetIsConnectedHandler")>]
member this.IsConnected : bool

Property Value

true if the socket successfully connected to a server

Attributes

Remarks

Returns the connection state of the socket.

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

Added in 1.4.

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

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