mscorlib(4.0.0.0) API with additions
LingerOption.cs
1 namespace System.Net.Sockets
2 {
4  public class LingerOption
5  {
6  private bool enabled;
7 
8  private int lingerTime;
9 
13  public bool Enabled
14  {
15  get
16  {
17  return enabled;
18  }
19  set
20  {
21  enabled = value;
22  }
23  }
24 
27  public int LingerTime
28  {
29  get
30  {
31  return lingerTime;
32  }
33  set
34  {
35  lingerTime = value;
36  }
37  }
38 
43  public LingerOption(bool enable, int seconds)
44  {
45  Enabled = enable;
46  LingerTime = seconds;
47  }
48  }
49 }
bool Enabled
Gets or sets a value that indicates whether to linger after the T:System.Net.Sockets....
Definition: LingerOption.cs:14
Specifies whether a T:System.Net.Sockets.Socket will remain connected after a call to the M:System....
Definition: LingerOption.cs:4
int LingerTime
Gets or sets the amount of time to remain connected after calling the M:System.Net....
Definition: LingerOption.cs:28
LingerOption(bool enable, int seconds)
Initializes a new instance of the T:System.Net.Sockets.LingerOption class.
Definition: LingerOption.cs:43