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: 0x020002D5 RID: 725
|
|
[Token(Token = "0x20002D5")]
|
|
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: 0x06001321 RID: 4897 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001321")]
|
|
[Address(RVA = "0xADCE60", Offset = "0xADBE60", VA = "0x180ADCE60")]
|
|
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: 0x170003E7 RID: 999
|
|
// (set) Token: 0x06001322 RID: 4898 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170003E7")]
|
|
public bool Enabled
|
|
{
|
|
[Token(Token = "0x6001322")]
|
|
[Address(RVA = "0x62ADC0", Offset = "0x629DC0", VA = "0x18062ADC0")]
|
|
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: 0x170003E8 RID: 1000
|
|
// (set) Token: 0x06001323 RID: 4899 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170003E8")]
|
|
public int LingerTime
|
|
{
|
|
[Token(Token = "0x6001323")]
|
|
[Address(RVA = "0x5F1920", Offset = "0x5F0920", VA = "0x1805F1920")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000BB2 RID: 2994
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000BB2")]
|
|
private bool enabled;
|
|
|
|
// Token: 0x04000BB3 RID: 2995
|
|
[FieldOffset(Offset = "0x14")]
|
|
[Token(Token = "0x4000BB3")]
|
|
private int lingerTime;
|
|
}
|
|
}
|