This commit is contained in:
niko
2026-04-12 16:51:38 +02:00
parent 1b6f6d81d0
commit c12fbe3fc6
17828 changed files with 2994770 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: 0x020002E3 RID: 739
[Token(Token = "0x20002E3")]
public enum SocketOptionName
{
/// <summary>Record debugging information.</summary>
// Token: 0x04000C4D RID: 3149
[Token(Token = "0x4000C4D")]
Debug = 1,
/// <summary>The socket is listening.</summary>
// Token: 0x04000C4E RID: 3150
[Token(Token = "0x4000C4E")]
AcceptConnection,
/// <summary>Allows the socket to be bound to an address that is already in use.</summary>
// Token: 0x04000C4F RID: 3151
[Token(Token = "0x4000C4F")]
ReuseAddress = 4,
/// <summary>Use keep-alives.</summary>
// Token: 0x04000C50 RID: 3152
[Token(Token = "0x4000C50")]
KeepAlive = 8,
/// <summary>Do not route; send the packet directly to the interface addresses.</summary>
// Token: 0x04000C51 RID: 3153
[Token(Token = "0x4000C51")]
DontRoute = 16,
/// <summary>Permit sending broadcast messages on the socket.</summary>
// Token: 0x04000C52 RID: 3154
[Token(Token = "0x4000C52")]
Broadcast = 32,
/// <summary>Bypass hardware when possible.</summary>
// Token: 0x04000C53 RID: 3155
[Token(Token = "0x4000C53")]
UseLoopback = 64,
/// <summary>Linger on close if unsent data is present.</summary>
// Token: 0x04000C54 RID: 3156
[Token(Token = "0x4000C54")]
Linger = 128,
/// <summary>Receives out-of-band data in the normal data stream.</summary>
// Token: 0x04000C55 RID: 3157
[Token(Token = "0x4000C55")]
OutOfBandInline = 256,
/// <summary>Close the socket gracefully without lingering.</summary>
// Token: 0x04000C56 RID: 3158
[Token(Token = "0x4000C56")]
DontLinger = -129,
/// <summary>Enables a socket to be bound for exclusive access.</summary>
// Token: 0x04000C57 RID: 3159
[Token(Token = "0x4000C57")]
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: 0x04000C58 RID: 3160
[Token(Token = "0x4000C58")]
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: 0x04000C59 RID: 3161
[Token(Token = "0x4000C59")]
ReceiveBuffer,
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Send" /> operations.</summary>
// Token: 0x04000C5A RID: 3162
[Token(Token = "0x4000C5A")]
SendLowWater,
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Receive" /> operations.</summary>
// Token: 0x04000C5B RID: 3163
[Token(Token = "0x4000C5B")]
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: 0x04000C5C RID: 3164
[Token(Token = "0x4000C5C")]
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: 0x04000C5D RID: 3165
[Token(Token = "0x4000C5D")]
ReceiveTimeout,
/// <summary>Gets the error status and clear.</summary>
// Token: 0x04000C5E RID: 3166
[Token(Token = "0x4000C5E")]
Error,
/// <summary>Gets the socket type.</summary>
// Token: 0x04000C5F RID: 3167
[Token(Token = "0x4000C5F")]
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: 0x04000C60 RID: 3168
[Token(Token = "0x4000C60")]
ReuseUnicastPort = 12295,
/// <summary>Not supported; will throw a <see cref="T:System.Net.Sockets.SocketException" /> if used.</summary>
// Token: 0x04000C61 RID: 3169
[Token(Token = "0x4000C61")]
MaxConnections = 2147483647,
/// <summary>Specifies the IP options to be inserted into outgoing datagrams.</summary>
// Token: 0x04000C62 RID: 3170
[Token(Token = "0x4000C62")]
IPOptions = 1,
/// <summary>Indicates that the application provides the IP header for outgoing datagrams.</summary>
// Token: 0x04000C63 RID: 3171
[Token(Token = "0x4000C63")]
HeaderIncluded,
/// <summary>Change the IP header type of the service field.</summary>
// Token: 0x04000C64 RID: 3172
[Token(Token = "0x4000C64")]
TypeOfService,
/// <summary>Set the IP header Time-to-Live field.</summary>
// Token: 0x04000C65 RID: 3173
[Token(Token = "0x4000C65")]
IpTimeToLive,
/// <summary>Set the interface for outgoing multicast packets.</summary>
// Token: 0x04000C66 RID: 3174
[Token(Token = "0x4000C66")]
MulticastInterface = 9,
/// <summary>An IP multicast Time to Live.</summary>
// Token: 0x04000C67 RID: 3175
[Token(Token = "0x4000C67")]
MulticastTimeToLive,
/// <summary>An IP multicast loopback.</summary>
// Token: 0x04000C68 RID: 3176
[Token(Token = "0x4000C68")]
MulticastLoopback,
/// <summary>Add an IP group membership.</summary>
// Token: 0x04000C69 RID: 3177
[Token(Token = "0x4000C69")]
AddMembership,
/// <summary>Drop an IP group membership.</summary>
// Token: 0x04000C6A RID: 3178
[Token(Token = "0x4000C6A")]
DropMembership,
/// <summary>Do not fragment IP datagrams.</summary>
// Token: 0x04000C6B RID: 3179
[Token(Token = "0x4000C6B")]
DontFragment,
/// <summary>Join a source group.</summary>
// Token: 0x04000C6C RID: 3180
[Token(Token = "0x4000C6C")]
AddSourceMembership,
/// <summary>Drop a source group.</summary>
// Token: 0x04000C6D RID: 3181
[Token(Token = "0x4000C6D")]
DropSourceMembership,
/// <summary>Block data from a source.</summary>
// Token: 0x04000C6E RID: 3182
[Token(Token = "0x4000C6E")]
BlockSource,
/// <summary>Unblock a previously blocked source.</summary>
// Token: 0x04000C6F RID: 3183
[Token(Token = "0x4000C6F")]
UnblockSource,
/// <summary>Return information about received packets.</summary>
// Token: 0x04000C70 RID: 3184
[Token(Token = "0x4000C70")]
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: 0x04000C71 RID: 3185
[Token(Token = "0x4000C71")]
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: 0x04000C72 RID: 3186
[Token(Token = "0x4000C72")]
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: 0x04000C73 RID: 3187
[Token(Token = "0x4000C73")]
IPv6Only = 27,
/// <summary>Disables the Nagle algorithm for send coalescing.</summary>
// Token: 0x04000C74 RID: 3188
[Token(Token = "0x4000C74")]
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: 0x04000C75 RID: 3189
[Token(Token = "0x4000C75")]
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: 0x04000C76 RID: 3190
[Token(Token = "0x4000C76")]
Expedited = 2,
/// <summary>Send UDP datagrams with checksum set to zero.</summary>
// Token: 0x04000C77 RID: 3191
[Token(Token = "0x4000C77")]
NoChecksum = 1,
/// <summary>Set or get the UDP checksum coverage.</summary>
// Token: 0x04000C78 RID: 3192
[Token(Token = "0x4000C78")]
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: 0x04000C79 RID: 3193
[Token(Token = "0x4000C79")]
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: 0x04000C7A RID: 3194
[Token(Token = "0x4000C7A")]
UpdateConnectContext = 28688
}
}