Share via


StandardSocketOptions.SoKeepalive Property

Definition

Keep connection alive.

[Android.Runtime.Register("SO_KEEPALIVE", ApiSince=24)]
public static Java.Net.ISocketOption? SoKeepalive { get; }
[<Android.Runtime.Register("SO_KEEPALIVE", ApiSince=24)>]
static member SoKeepalive : Java.Net.ISocketOption

Property Value

Attributes

Remarks

Keep connection alive.

The value of this socket option is a Boolean that represents whether the option is enabled or disabled. When the SO_KEEPALIVE option is enabled the operating system may use a <em>keep-alive</em> mechanism to periodically probe the other end of a connection when the connection is otherwise idle. The exact semantics of the keep alive mechanism is system dependent and therefore unspecified.

The initial value of this socket option is FALSE. The socket option may be enabled or disabled at any time.

Java documentation for java.net.StandardSocketOptions.SO_KEEPALIVE.

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