O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

LingerOption

Synopsis

This class is a socket option object that enables a socket to continue to send queued data after a call to Socket.Close(). If the Enabled property is True, the connection lingers for the number of seconds given by LingerTime. The LingerOption object is set on a socket with the Socket.SetSocketOption() method and a SocketOptionName of SocketOptionName.Linger.

public class LingerOption {
// Public Constructors
   public method LingerOption(bool enable, int seconds);  
// Public Instance Properties
   public field bool Enabled{set; get; } 
   public field int LingerTime{set; get; } 
}

Returned By

TcpClient.LingerState

Passed To

TcpClient.LingerState

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required