Mono Class Library: System.Net.Sockets.LingerOption Overview | Members

System.Net.Sockets.LingerOption.LingerTime Property

Gets or sets the amount of time to remain connected after the Socket.Close method is called. [Edit]

public int LingerTime { set; get; }

Value

A int that contains the amount of time, in seconds, to remain connected after calling the Socket.Close method. [Edit]

Remarks

When setting the SocketOptionName.Linger option of an instance of the System.Net.Sockets.Socket class, a ArgumentException exception is thrown if the LingerOption.LingerTime property is less than zero or greater than ushort.MaxValue . [Edit]

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0