Sdílet prostřednictvím


Socket.SoLinger Property

Definition

Returns setting for SocketOptions#SO_LINGER SO_LINGER.

public virtual int SoLinger { [Android.Runtime.Register("getSoLinger", "()I", "GetGetSoLingerHandler")] get; }
[<get: Android.Runtime.Register("getSoLinger", "()I", "GetGetSoLingerHandler")>]
member this.SoLinger : int

Property Value

the setting for SocketOptions#SO_LINGER SO_LINGER.

Attributes

Exceptions

Remarks

Returns setting for SocketOptions#SO_LINGER SO_LINGER. -1 returns implies that the option is disabled.

The setting only affects socket close.

Added in 1.1.

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

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