Mentalis.org Security Library documentation

SecureTcpClient.LingerState Property

Gets or sets information about the sockets linger time.

[Visual Basic]
Public Property LingerState As LingerOption
[C#]
public System.Net.Sockets.LingerOption LingerState {get; set;}

Property Value

A LingerOption.

Remarks

This property controls the length of time that the underlying Socket will remain open after a call to Close, when data remains to be sent. If the Enabled property of the LingerOption is true, then data will continue to be sent to the network with a time out of LingerOption.LingerTime seconds. Once the data is sent, or if the time-out expires, the connection is closed and any unsent data is lost. If the Enabled property of the LingerOption is false , then the connection will close, even if data remains to be sent.

See Also

SecureTcpClient Class | SecureTcpClient Members | Org.Mentalis.Security.Ssl Namespace