using System;
using Cpp2IlInjected;
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: 0x020002D9 RID: 729
[Token(Token = "0x20002D9")]
public class LingerOption
{
/// Initializes a new instance of the class.
///
/// to remain connected after the method is called; otherwise, .
/// The number of seconds to remain connected after the method is called.
// Token: 0x06001337 RID: 4919 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001337")]
[Address(RVA = "0x2621B80", Offset = "0x2620980", VA = "0x182621B80")]
public LingerOption(bool enable, int seconds)
{
}
/// Gets or sets a value that indicates whether to linger after the is closed.
///
/// if the should linger after is called; otherwise, .
// Token: 0x170003EB RID: 1003
// (set) Token: 0x06001338 RID: 4920 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003EB")]
public bool Enabled
{
[Token(Token = "0x6001338")]
[Address(RVA = "0x495D50", Offset = "0x494B50", VA = "0x180495D50")]
set
{
}
}
/// 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: 0x170003EC RID: 1004
// (set) Token: 0x06001339 RID: 4921 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003EC")]
public int LingerTime
{
[Token(Token = "0x6001339")]
[Address(RVA = "0x52EC20", Offset = "0x52DA20", VA = "0x18052EC20")]
set
{
}
}
// Token: 0x04000BBF RID: 3007
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000BBF")]
private bool enabled;
// Token: 0x04000BC0 RID: 3008
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4000BC0")]
private int lingerTime;
}
}