다음을 통해 공유


Socket.KeepAlive Property

Definition

Tests if SocketOptions#SO_KEEPALIVE SO_KEEPALIVE is enabled. -or- Enable/disable SocketOptions#SO_KEEPALIVE SO_KEEPALIVE.

public virtual bool KeepAlive { [Android.Runtime.Register("getKeepAlive", "()Z", "GetGetKeepAliveHandler")] get; [Android.Runtime.Register("setKeepAlive", "(Z)V", "GetSetKeepAlive_ZHandler")] set; }
[<get: Android.Runtime.Register("getKeepAlive", "()Z", "GetGetKeepAliveHandler")>]
[<set: Android.Runtime.Register("setKeepAlive", "(Z)V", "GetSetKeepAlive_ZHandler")>]
member this.KeepAlive : bool with get, set

Property Value

a boolean indicating whether or not SocketOptions#SO_KEEPALIVE SO_KEEPALIVE is enabled.

Attributes

Exceptions

Remarks

Property getter documentation:

Tests if SocketOptions#SO_KEEPALIVE SO_KEEPALIVE is enabled.

Added in 1.3.

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

Property setter documentation:

Enable/disable SocketOptions#SO_KEEPALIVE SO_KEEPALIVE.

Added in 1.3.

Java documentation for java.net.Socket.setKeepAlive(boolean).

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