This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
+196
View File
@@ -0,0 +1,196 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Defines configuration option names.</summary>
// Token: 0x020002E7 RID: 743
[Token(Token = "0x20002E7")]
public enum SocketOptionName
{
/// <summary>Record debugging information.</summary>
// Token: 0x04000C5A RID: 3162
[Token(Token = "0x4000C5A")]
Debug = 1,
/// <summary>The socket is listening.</summary>
// Token: 0x04000C5B RID: 3163
[Token(Token = "0x4000C5B")]
AcceptConnection,
/// <summary>Allows the socket to be bound to an address that is already in use.</summary>
// Token: 0x04000C5C RID: 3164
[Token(Token = "0x4000C5C")]
ReuseAddress = 4,
/// <summary>Use keep-alives.</summary>
// Token: 0x04000C5D RID: 3165
[Token(Token = "0x4000C5D")]
KeepAlive = 8,
/// <summary>Do not route; send the packet directly to the interface addresses.</summary>
// Token: 0x04000C5E RID: 3166
[Token(Token = "0x4000C5E")]
DontRoute = 16,
/// <summary>Permit sending broadcast messages on the socket.</summary>
// Token: 0x04000C5F RID: 3167
[Token(Token = "0x4000C5F")]
Broadcast = 32,
/// <summary>Bypass hardware when possible.</summary>
// Token: 0x04000C60 RID: 3168
[Token(Token = "0x4000C60")]
UseLoopback = 64,
/// <summary>Linger on close if unsent data is present.</summary>
// Token: 0x04000C61 RID: 3169
[Token(Token = "0x4000C61")]
Linger = 128,
/// <summary>Receives out-of-band data in the normal data stream.</summary>
// Token: 0x04000C62 RID: 3170
[Token(Token = "0x4000C62")]
OutOfBandInline = 256,
/// <summary>Close the socket gracefully without lingering.</summary>
// Token: 0x04000C63 RID: 3171
[Token(Token = "0x4000C63")]
DontLinger = -129,
/// <summary>Enables a socket to be bound for exclusive access.</summary>
// Token: 0x04000C64 RID: 3172
[Token(Token = "0x4000C64")]
ExclusiveAddressUse = -5,
/// <summary>Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.</summary>
// Token: 0x04000C65 RID: 3173
[Token(Token = "0x4000C65")]
SendBuffer = 4097,
/// <summary>Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.</summary>
// Token: 0x04000C66 RID: 3174
[Token(Token = "0x4000C66")]
ReceiveBuffer,
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Send" /> operations.</summary>
// Token: 0x04000C67 RID: 3175
[Token(Token = "0x4000C67")]
SendLowWater,
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Receive" /> operations.</summary>
// Token: 0x04000C68 RID: 3176
[Token(Token = "0x4000C68")]
ReceiveLowWater,
/// <summary>Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</summary>
// Token: 0x04000C69 RID: 3177
[Token(Token = "0x4000C69")]
SendTimeout,
/// <summary>Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</summary>
// Token: 0x04000C6A RID: 3178
[Token(Token = "0x4000C6A")]
ReceiveTimeout,
/// <summary>Gets the error status and clear.</summary>
// Token: 0x04000C6B RID: 3179
[Token(Token = "0x4000C6B")]
Error,
/// <summary>Gets the socket type.</summary>
// Token: 0x04000C6C RID: 3180
[Token(Token = "0x4000C6C")]
Type,
/// <summary>Indicates that the system should defer ephemeral port allocation for outbound connections. This is equivalent to using the Winsock2 SO_REUSE_UNICASTPORT socket option.</summary>
// Token: 0x04000C6D RID: 3181
[Token(Token = "0x4000C6D")]
ReuseUnicastPort = 12295,
/// <summary>Not supported; will throw a <see cref="T:System.Net.Sockets.SocketException" /> if used.</summary>
// Token: 0x04000C6E RID: 3182
[Token(Token = "0x4000C6E")]
MaxConnections = 2147483647,
/// <summary>Specifies the IP options to be inserted into outgoing datagrams.</summary>
// Token: 0x04000C6F RID: 3183
[Token(Token = "0x4000C6F")]
IPOptions = 1,
/// <summary>Indicates that the application provides the IP header for outgoing datagrams.</summary>
// Token: 0x04000C70 RID: 3184
[Token(Token = "0x4000C70")]
HeaderIncluded,
/// <summary>Change the IP header type of the service field.</summary>
// Token: 0x04000C71 RID: 3185
[Token(Token = "0x4000C71")]
TypeOfService,
/// <summary>Set the IP header Time-to-Live field.</summary>
// Token: 0x04000C72 RID: 3186
[Token(Token = "0x4000C72")]
IpTimeToLive,
/// <summary>Set the interface for outgoing multicast packets.</summary>
// Token: 0x04000C73 RID: 3187
[Token(Token = "0x4000C73")]
MulticastInterface = 9,
/// <summary>An IP multicast Time to Live.</summary>
// Token: 0x04000C74 RID: 3188
[Token(Token = "0x4000C74")]
MulticastTimeToLive,
/// <summary>An IP multicast loopback.</summary>
// Token: 0x04000C75 RID: 3189
[Token(Token = "0x4000C75")]
MulticastLoopback,
/// <summary>Add an IP group membership.</summary>
// Token: 0x04000C76 RID: 3190
[Token(Token = "0x4000C76")]
AddMembership,
/// <summary>Drop an IP group membership.</summary>
// Token: 0x04000C77 RID: 3191
[Token(Token = "0x4000C77")]
DropMembership,
/// <summary>Do not fragment IP datagrams.</summary>
// Token: 0x04000C78 RID: 3192
[Token(Token = "0x4000C78")]
DontFragment,
/// <summary>Join a source group.</summary>
// Token: 0x04000C79 RID: 3193
[Token(Token = "0x4000C79")]
AddSourceMembership,
/// <summary>Drop a source group.</summary>
// Token: 0x04000C7A RID: 3194
[Token(Token = "0x4000C7A")]
DropSourceMembership,
/// <summary>Block data from a source.</summary>
// Token: 0x04000C7B RID: 3195
[Token(Token = "0x4000C7B")]
BlockSource,
/// <summary>Unblock a previously blocked source.</summary>
// Token: 0x04000C7C RID: 3196
[Token(Token = "0x4000C7C")]
UnblockSource,
/// <summary>Return information about received packets.</summary>
// Token: 0x04000C7D RID: 3197
[Token(Token = "0x4000C7D")]
PacketInformation,
/// <summary>Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4.</summary>
// Token: 0x04000C7E RID: 3198
[Token(Token = "0x4000C7E")]
HopLimit = 21,
/// <summary>Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.This socket option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This socket option has defined protection levels specified in the <see cref="T:System.Net.Sockets.IPProtectionLevel" /> enumeration.</summary>
// Token: 0x04000C7F RID: 3199
[Token(Token = "0x4000C7F")]
IPProtectionLevel = 23,
/// <summary>Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications only. Sockets created for the AF_INET6 address family may be used for both IPv6 and IPv4 communications. Some applications may want to restrict their use of a socket created for the AF_INET6 address family to IPv6 communications only. When this value is non-zero (the default on Windows), a socket created for the AF_INET6 address family can be used to send and receive IPv6 packets only. When this value is zero, a socket created for the AF_INET6 address family can be used to send and receive packets to and from an IPv6 address or an IPv4 address. Note that the ability to interact with an IPv4 address requires the use of IPv4 mapped addresses. This socket option is supported on Windows Vista or later.</summary>
// Token: 0x04000C80 RID: 3200
[Token(Token = "0x4000C80")]
IPv6Only = 27,
/// <summary>Disables the Nagle algorithm for send coalescing.</summary>
// Token: 0x04000C81 RID: 3201
[Token(Token = "0x4000C81")]
NoDelay = 1,
/// <summary>Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.</summary>
// Token: 0x04000C82 RID: 3202
[Token(Token = "0x4000C82")]
BsdUrgent,
/// <summary>Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.</summary>
// Token: 0x04000C83 RID: 3203
[Token(Token = "0x4000C83")]
Expedited = 2,
/// <summary>Send UDP datagrams with checksum set to zero.</summary>
// Token: 0x04000C84 RID: 3204
[Token(Token = "0x4000C84")]
NoChecksum = 1,
/// <summary>Set or get the UDP checksum coverage.</summary>
// Token: 0x04000C85 RID: 3205
[Token(Token = "0x4000C85")]
ChecksumCoverage = 20,
/// <summary>Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets.</summary>
// Token: 0x04000C86 RID: 3206
[Token(Token = "0x4000C86")]
UpdateAcceptContext = 28683,
/// <summary>Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets.</summary>
// Token: 0x04000C87 RID: 3207
[Token(Token = "0x4000C87")]
UpdateConnectContext = 28688
}
}