using System;
namespace System.Net.Sockets
{
/// Specifies whether a will remain connected after a call to the or methods and the length of time it will remain connected, if data remains to be sent.
// Token: 0x020001DC RID: 476
public class LingerOption
{
/// Initializes a new instance of the class.
/// true to remain connected after the method is called; otherwise, false.
/// The number of seconds to remain connected after the method is called.
// Token: 0x06000F60 RID: 3936 RVA: 0x0002A3C0 File Offset: 0x000285C0
public LingerOption(bool enable, int secs)
{
this.enabled = enable;
this.seconds = secs;
}
/// Gets or sets a value that indicates whether to linger after the is closed.
/// true if the should linger after is called; otherwise, false.
// Token: 0x17000542 RID: 1346
// (get) Token: 0x06000F61 RID: 3937 RVA: 0x0002A3D8 File Offset: 0x000285D8
// (set) Token: 0x06000F62 RID: 3938 RVA: 0x0002A3E0 File Offset: 0x000285E0
public bool Enabled
{
get
{
return this.enabled;
}
set
{
this.enabled = value;
}
}
/// Gets or sets the amount of time to remain connected after calling the method if data remains to be sent.
/// The amount of time, in seconds, to remain connected after calling .
// Token: 0x17000543 RID: 1347
// (get) Token: 0x06000F63 RID: 3939 RVA: 0x0002A3EC File Offset: 0x000285EC
// (set) Token: 0x06000F64 RID: 3940 RVA: 0x0002A3F4 File Offset: 0x000285F4
public int LingerTime
{
get
{
return this.seconds;
}
set
{
this.seconds = value;
}
}
// Token: 0x04000DF8 RID: 3576
private bool enabled;
// Token: 0x04000DF9 RID: 3577
private int seconds;
}
}