LingerOption

LingerOption CF 1.0, ECMA 1.0

System.Net.Sockets (system.dll) class

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  LingerOption  (bool   enable   , int   seconds   );  // Public Instance Properties  public bool  Enabled  {set; get; }    public int  LingerTime  {set; get; } } 

Returned By

TcpClient.LingerState

Passed To

TcpClient.LingerState



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net