62 lines
2.7 KiB
C#
62 lines
2.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net.Sockets
|
|
{
|
|
/// <summary>Specifies whether a <see cref="T:System.Net.Sockets.Socket" /> will remain connected after a call to the <see cref="M:System.Net.Sockets.Socket.Close" /> or <see cref="M:System.Net.Sockets.TcpClient.Close" /> methods and the length of time it will remain connected, if data remains to be sent.</summary>
|
|
// Token: 0x020002D9 RID: 729
|
|
[Token(Token = "0x20002D9")]
|
|
public class LingerOption
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.LingerOption" /> class.</summary>
|
|
/// <param name="enable">
|
|
/// <see langword="true" /> to remain connected after the <see cref="M:System.Net.Sockets.Socket.Close" /> method is called; otherwise, <see langword="false" />.</param>
|
|
/// <param name="seconds">The number of seconds to remain connected after the <see cref="M:System.Net.Sockets.Socket.Close" /> method is called.</param>
|
|
// 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)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets a value that indicates whether to linger after the <see cref="T:System.Net.Sockets.Socket" /> is closed.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> should linger after <see cref="M:System.Net.Sockets.Socket.Close" /> is called; otherwise, <see langword="false" />.</returns>
|
|
// 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
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the amount of time to remain connected after calling the <see cref="M:System.Net.Sockets.Socket.Close" /> method if data remains to be sent.</summary>
|
|
/// <returns>The amount of time, in seconds, to remain connected after calling <see cref="M:System.Net.Sockets.Socket.Close" />.</returns>
|
|
// 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;
|
|
}
|
|
}
|