This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
+136
View File
@@ -0,0 +1,136 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Specifies the addressing scheme that an instance of the <see cref="T:System.Net.Sockets.Socket" /> class can use.</summary>
// Token: 0x020002D6 RID: 726
[Token(Token = "0x20002D6")]
public enum AddressFamily
{
/// <summary>Unknown address family.</summary>
// Token: 0x04000B78 RID: 2936
[Token(Token = "0x4000B78")]
Unknown = -1,
/// <summary>Unspecified address family.</summary>
// Token: 0x04000B79 RID: 2937
[Token(Token = "0x4000B79")]
Unspecified,
/// <summary>Unix local to host address.</summary>
// Token: 0x04000B7A RID: 2938
[Token(Token = "0x4000B7A")]
Unix,
/// <summary>Address for IP version 4.</summary>
// Token: 0x04000B7B RID: 2939
[Token(Token = "0x4000B7B")]
InterNetwork,
/// <summary>ARPANET IMP address.</summary>
// Token: 0x04000B7C RID: 2940
[Token(Token = "0x4000B7C")]
ImpLink,
/// <summary>Address for PUP protocols.</summary>
// Token: 0x04000B7D RID: 2941
[Token(Token = "0x4000B7D")]
Pup,
/// <summary>Address for MIT CHAOS protocols.</summary>
// Token: 0x04000B7E RID: 2942
[Token(Token = "0x4000B7E")]
Chaos,
/// <summary>Address for Xerox NS protocols.</summary>
// Token: 0x04000B7F RID: 2943
[Token(Token = "0x4000B7F")]
NS,
/// <summary>IPX or SPX address.</summary>
// Token: 0x04000B80 RID: 2944
[Token(Token = "0x4000B80")]
Ipx = 6,
/// <summary>Address for ISO protocols.</summary>
// Token: 0x04000B81 RID: 2945
[Token(Token = "0x4000B81")]
Iso,
/// <summary>Address for OSI protocols.</summary>
// Token: 0x04000B82 RID: 2946
[Token(Token = "0x4000B82")]
Osi = 7,
/// <summary>European Computer Manufacturers Association (ECMA) address.</summary>
// Token: 0x04000B83 RID: 2947
[Token(Token = "0x4000B83")]
Ecma,
/// <summary>Address for Datakit protocols.</summary>
// Token: 0x04000B84 RID: 2948
[Token(Token = "0x4000B84")]
DataKit,
/// <summary>Addresses for CCITT protocols, such as X.25.</summary>
// Token: 0x04000B85 RID: 2949
[Token(Token = "0x4000B85")]
Ccitt,
/// <summary>IBM SNA address.</summary>
// Token: 0x04000B86 RID: 2950
[Token(Token = "0x4000B86")]
Sna,
/// <summary>DECnet address.</summary>
// Token: 0x04000B87 RID: 2951
[Token(Token = "0x4000B87")]
DecNet,
/// <summary>Direct data-link interface address.</summary>
// Token: 0x04000B88 RID: 2952
[Token(Token = "0x4000B88")]
DataLink,
/// <summary>LAT address.</summary>
// Token: 0x04000B89 RID: 2953
[Token(Token = "0x4000B89")]
Lat,
/// <summary>NSC Hyperchannel address.</summary>
// Token: 0x04000B8A RID: 2954
[Token(Token = "0x4000B8A")]
HyperChannel,
/// <summary>AppleTalk address.</summary>
// Token: 0x04000B8B RID: 2955
[Token(Token = "0x4000B8B")]
AppleTalk,
/// <summary>NetBios address.</summary>
// Token: 0x04000B8C RID: 2956
[Token(Token = "0x4000B8C")]
NetBios,
/// <summary>VoiceView address.</summary>
// Token: 0x04000B8D RID: 2957
[Token(Token = "0x4000B8D")]
VoiceView,
/// <summary>FireFox address.</summary>
// Token: 0x04000B8E RID: 2958
[Token(Token = "0x4000B8E")]
FireFox,
/// <summary>Banyan address.</summary>
// Token: 0x04000B8F RID: 2959
[Token(Token = "0x4000B8F")]
Banyan = 21,
/// <summary>Native ATM services address.</summary>
// Token: 0x04000B90 RID: 2960
[Token(Token = "0x4000B90")]
Atm,
/// <summary>Address for IP version 6.</summary>
// Token: 0x04000B91 RID: 2961
[Token(Token = "0x4000B91")]
InterNetworkV6,
/// <summary>Address for Microsoft cluster products.</summary>
// Token: 0x04000B92 RID: 2962
[Token(Token = "0x4000B92")]
Cluster,
/// <summary>IEEE 1284.4 workgroup address.</summary>
// Token: 0x04000B93 RID: 2963
[Token(Token = "0x4000B93")]
Ieee12844,
/// <summary>IrDA address.</summary>
// Token: 0x04000B94 RID: 2964
[Token(Token = "0x4000B94")]
Irda,
/// <summary>Address for Network Designers OSI gateway-enabled protocols.</summary>
// Token: 0x04000B95 RID: 2965
[Token(Token = "0x4000B95")]
NetworkDesigners = 28,
/// <summary>MAX address.</summary>
// Token: 0x04000B96 RID: 2966
[Token(Token = "0x4000B96")]
Max
}
}
+148
View File
@@ -0,0 +1,148 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Specifies the IO control codes supported by the <see cref="M:System.Net.Sockets.Socket.IOControl(System.Int32,System.Byte[],System.Byte[])" /> method.</summary>
// Token: 0x020002D7 RID: 727
[Token(Token = "0x20002D7")]
public enum IOControlCode : long
{
/// <summary>Enable notification for when data is waiting to be received. This value is equal to the Winsock 2 FIOASYNC constant.</summary>
// Token: 0x04000B98 RID: 2968
[Token(Token = "0x4000B98")]
AsyncIO = 2147772029L,
/// <summary>Control the blocking behavior of the socket. If the argument specified with this control code is zero, the socket is placed in blocking mode. If the argument is nonzero, the socket is placed in nonblocking mode. This value is equal to the Winsock 2 FIONBIO constant.</summary>
// Token: 0x04000B99 RID: 2969
[Token(Token = "0x4000B99")]
NonBlockingIO,
/// <summary>Return the number of bytes available for reading. This value is equal to the Winsock 2 FIONREAD constant.</summary>
// Token: 0x04000B9A RID: 2970
[Token(Token = "0x4000B9A")]
DataToRead = 1074030207L,
/// <summary>Return information about out-of-band data waiting to be received. When using this control code on stream sockets, the return value indicates the number of bytes available.</summary>
// Token: 0x04000B9B RID: 2971
[Token(Token = "0x4000B9B")]
OobDataRead = 1074033415L,
/// <summary>Associate this socket with the specified handle of a companion interface. Refer to the appropriate protocol-specific annex in the Winsock 2 reference or documentation for the particular companion interface for additional details. It is recommended that the Component Object Model (COM) be used instead of this IOCTL to discover and track other interfaces that might be supported by a socket. This control code is present for backward compatibility with systems where COM is not available or cannot be used for some other reason. This value is equal to the Winsock 2 SIO_ASSOCIATE_HANDLE constant.</summary>
// Token: 0x04000B9C RID: 2972
[Token(Token = "0x4000B9C")]
AssociateHandle = 2281701377L,
/// <summary>Replace the oldest queued datagram with an incoming datagram when the incoming message queues are full. This value is equal to the Winsock 2 SIO_ENABLE_CIRCULAR_QUEUEING constant.</summary>
// Token: 0x04000B9D RID: 2973
[Token(Token = "0x4000B9D")]
EnableCircularQueuing = 671088642L,
/// <summary>Discard the contents of the sending queue. This value is equal to the Winsock 2 SIO_FLUSH constant.</summary>
// Token: 0x04000B9E RID: 2974
[Token(Token = "0x4000B9E")]
Flush = 671088644L,
/// <summary>Return a SOCKADDR structure that contains the broadcast address for the address family of the current socket. The returned address can be used with the <see cref="Overload:System.Net.Sockets.Socket.SendTo" /> method. This value is equal to the Winsock 2 SIO_GET_BROADCAST_ADDRESS constant. This value can be used on User Datagram Protocol (UDP) sockets only.</summary>
// Token: 0x04000B9F RID: 2975
[Token(Token = "0x4000B9F")]
GetBroadcastAddress = 1207959557L,
/// <summary>Obtain provider-specific functions that are not part of the Winsock specification. Functions are specified using their provider-assigned GUID. This value is equal to the Winsock 2 SIO_GET_EXTENSION_FUNCTION_POINTER constant.</summary>
// Token: 0x04000BA0 RID: 2976
[Token(Token = "0x4000BA0")]
GetExtensionFunctionPointer = 3355443206L,
/// <summary>Retrieve the QOS structure associated with the socket. This control is only supported on platforms that provide a QOS capable transport (Windows Me, Windows 2000, and later.) This value is equal to the Winsock 2 SIO_GET_QOS constant.</summary>
// Token: 0x04000BA1 RID: 2977
[Token(Token = "0x4000BA1")]
GetQos,
/// <summary>Return the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use, and is equal to the Winsock 2 SIO_GET_GROUP_QOS constant.</summary>
// Token: 0x04000BA2 RID: 2978
[Token(Token = "0x4000BA2")]
GetGroupQos,
/// <summary>Control whether multicast data sent by the socket appears as incoming data in the sockets receive queue. This value is equal to the Winsock 2 SIO_MULTIPOINT_LOOPBACK constant.</summary>
// Token: 0x04000BA3 RID: 2979
[Token(Token = "0x4000BA3")]
MultipointLoopback = 2281701385L,
/// <summary>Control the number of times a multicast packet can be forwarded by a router, also known as the Time to Live (TTL), or hop count. This value is equal to the Winsock 2 SIO_MULTICAST_SCOPE constant.</summary>
// Token: 0x04000BA4 RID: 2980
[Token(Token = "0x4000BA4")]
MulticastScope,
/// <summary>Set the Quality of Service (QOS) attributes for the socket. QOS defines the bandwidth requirements for the socket. This control code is supported on Windows Me, Windows 2000, and later operating systems. This value is equal to the Winsock 2 SIO_SET_QOS constant.</summary>
// Token: 0x04000BA5 RID: 2981
[Token(Token = "0x4000BA5")]
SetQos,
/// <summary>Set the Quality of Service (QOS) attributes for the socket group. This value is reserved for future use and is equal to the Winsock 2 SIO_SET_GROUP_QOS constant.</summary>
// Token: 0x04000BA6 RID: 2982
[Token(Token = "0x4000BA6")]
SetGroupQos,
/// <summary>Return a handle for the socket that is valid in the context of a companion interface. This value is equal to the Winsock 2 SIO_TRANSLATE_HANDLE constant.</summary>
// Token: 0x04000BA7 RID: 2983
[Token(Token = "0x4000BA7")]
TranslateHandle = 3355443213L,
/// <summary>Return the interface addresses that can be used to connect to the specified remote address. This value is equal to the Winsock 2 SIO_ROUTING_INTERFACE_QUERY constant.</summary>
// Token: 0x04000BA8 RID: 2984
[Token(Token = "0x4000BA8")]
RoutingInterfaceQuery = 3355443220L,
/// <summary>Enable receiving notification when the local interface used to access a remote endpoint changes. This value is equal to the Winsock 2 SIO_ROUTING_INTERFACE_CHANGE constant.</summary>
// Token: 0x04000BA9 RID: 2985
[Token(Token = "0x4000BA9")]
RoutingInterfaceChange = 2281701397L,
/// <summary>Return the list of local interfaces that the socket can bind to. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_ADDRESS_LIST_QUERY constant.</summary>
// Token: 0x04000BAA RID: 2986
[Token(Token = "0x4000BAA")]
AddressListQuery = 1207959574L,
/// <summary>Enable receiving notification when the list of local interfaces for the socket's protocol family changes. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_ADDRESS_LIST_CHANGE constant.</summary>
// Token: 0x04000BAB RID: 2987
[Token(Token = "0x4000BAB")]
AddressListChange = 671088663L,
/// <summary>Retrieve the underlying provider's SOCKET handle. This handle can be used to receive plug-and-play event notification. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_QUERY_TARGET_PNP_HANDLE constant.</summary>
// Token: 0x04000BAC RID: 2988
[Token(Token = "0x4000BAC")]
QueryTargetPnpHandle = 1207959576L,
/// <summary>Control whether the socket receives notification when a namespace query becomes invalid. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock 2 SIO_NSP_NOTIFY_CHANGE constant.</summary>
// Token: 0x04000BAD RID: 2989
[Token(Token = "0x4000BAD")]
NamespaceChange = 2281701401L,
/// <summary>Sort the structure returned by the <see cref="F:System.Net.Sockets.IOControlCode.AddressListQuery" /> field and add scope ID information for IPv6 addresses. This control code is supported on Windows XP and later operating systems. This value is equal to the Winsock 2 SIO_ADDRESS_LIST_SORT constant.</summary>
// Token: 0x04000BAE RID: 2990
[Token(Token = "0x4000BAE")]
AddressListSort = 3355443225L,
/// <summary>Enable receiving all IPv4 packets on the network. The socket must have address family <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" />, the socket type must be <see cref="F:System.Net.Sockets.SocketType.Raw" />, and the protocol type must be <see cref="F:System.Net.Sockets.ProtocolType.IP" />. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_RCVALL constant.</summary>
// Token: 0x04000BAF RID: 2991
[Token(Token = "0x4000BAF")]
ReceiveAll = 2550136833L,
/// <summary>Enable receiving all multicast IPv4 packets on the network. These are packets with destination addresses in the range 224.0.0.0 through 239.255.255.255. The socket must have address family <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" />, the socket type must be <see cref="F:System.Net.Sockets.SocketType.Raw" />, and the protocol type must be <see cref="F:System.Net.Sockets.ProtocolType.Udp" />. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_RCVALL_MCAST constant.</summary>
// Token: 0x04000BB0 RID: 2992
[Token(Token = "0x4000BB0")]
ReceiveAllMulticast,
/// <summary>Enable receiving all Internet Group Management Protocol (IGMP) packets on the network. The socket must have address family <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" />, the socket type must be <see cref="F:System.Net.Sockets.SocketType.Raw" />, and the protocol type must be <see cref="F:System.Net.Sockets.ProtocolType.Igmp" />. The current user must belong to the Administrators group on the local computer, and the socket must be bound to a specific port. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_RCVALL_IGMPMCAST constant.</summary>
// Token: 0x04000BB1 RID: 2993
[Token(Token = "0x4000BB1")]
ReceiveAllIgmpMulticast,
/// <summary>Control sending TCP keep-alive packets and the interval at which they are sent. This control code is supported on Windows 2000 and later operating systems. For additional information, see RFC 1122 section 4.2.3.6. This value is equal to the Winsock 2 SIO_KEEPALIVE_VALS constant.</summary>
// Token: 0x04000BB2 RID: 2994
[Token(Token = "0x4000BB2")]
KeepAliveValues,
/// <summary>This value is equal to the Winsock 2 SIO_ABSORB_RTRALERT constant.</summary>
// Token: 0x04000BB3 RID: 2995
[Token(Token = "0x4000BB3")]
AbsorbRouterAlert,
/// <summary>Set the interface used for outgoing unicast packets. This value is equal to the Winsock 2 SIO_UCAST_IF constant.</summary>
// Token: 0x04000BB4 RID: 2996
[Token(Token = "0x4000BB4")]
UnicastInterface,
/// <summary>This value is equal to the Winsock 2 SIO_LIMIT_BROADCASTS constant.</summary>
// Token: 0x04000BB5 RID: 2997
[Token(Token = "0x4000BB5")]
LimitBroadcasts,
/// <summary>Bind the socket to a specified interface index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_INDEX_BIND constant.</summary>
// Token: 0x04000BB6 RID: 2998
[Token(Token = "0x4000BB6")]
BindToInterface,
/// <summary>Set the interface used for outgoing multicast packets. The interface is identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_INDEX_MCASTIF constant.</summary>
// Token: 0x04000BB7 RID: 2999
[Token(Token = "0x4000BB7")]
MulticastInterface,
/// <summary>Join a multicast group using an interface identified by its index. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_INDEX_ADD_MCAST constant.</summary>
// Token: 0x04000BB8 RID: 3000
[Token(Token = "0x4000BB8")]
AddMulticastGroupOnInterface,
/// <summary>Remove the socket from a multicast group. This control code is supported on Windows 2000 and later operating systems. This value is equal to the Winsock 2 SIO_INDEX_ADD_MCAST constant.</summary>
// Token: 0x04000BB9 RID: 3001
[Token(Token = "0x4000BB9")]
DeleteMulticastGroupFromInterface
}
}
+28
View File
@@ -0,0 +1,28 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>A value that enables restriction of an IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.</summary>
// Token: 0x020002D8 RID: 728
[Token(Token = "0x20002D8")]
public enum IPProtectionLevel
{
/// <summary>The IP protection level is unspecified. On Windows 7 and Windows Server 2008 R2, the default value for the IP Protection level on a socket is unspecified.</summary>
// Token: 0x04000BBB RID: 3003
[Token(Token = "0x4000BBB")]
Unspecified = -1,
/// <summary>The IP protection level is unrestricted. This value would be used by applications designed to operate across the Internet, including applications taking advantage of IPv6 NAT traversal capabilities built into Windows (Teredo, for example). These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2008 R2 and Windows Vista, the default value for the IP Protection level on a socket is unrestricted.</summary>
// Token: 0x04000BBC RID: 3004
[Token(Token = "0x4000BBC")]
Unrestricted = 10,
/// <summary>The IP protection level is edge restricted. This value would be used by applications designed to operate across the Internet. This setting does not allow Network Address Translation (NAT) traversal using the Windows Teredo implementation. These applications may bypass IPv4 firewalls, so applications must be hardened against Internet attacks directed at the opened port. On Windows Server 2003 and Windows XP, the default value for the IP Protection level on a socket is edge restricted.</summary>
// Token: 0x04000BBD RID: 3005
[Token(Token = "0x4000BBD")]
EdgeRestricted = 20,
/// <summary>The IP protection level is restricted. This value would be used by intranet applications that do not implement Internet scenarios. These applications are generally not tested or hardened against Internet-style attacks. This setting will limit the received traffic to link-local only.</summary>
// Token: 0x04000BBE RID: 3006
[Token(Token = "0x4000BBE")]
Restricted = 30
}
}
+12
View File
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Contains option values for joining an IPv6 multicast group.</summary>
// Token: 0x020002DB RID: 731
[Token(Token = "0x20002DB")]
public class IPv6MulticastOption
{
}
}
+61
View File
@@ -0,0 +1,61 @@
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;
}
}
+12
View File
@@ -0,0 +1,12 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Contains <see cref="T:System.Net.IPAddress" /> values used to join and drop multicast groups.</summary>
// Token: 0x020002DA RID: 730
[Token(Token = "0x20002DA")]
public class MulticastOption
{
}
}
+448
View File
@@ -0,0 +1,448 @@
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Provides the underlying stream of data for network access.</summary>
// Token: 0x020002DC RID: 732
[Token(Token = "0x20002DC")]
public class NetworkStream : Stream
{
/// <summary>Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
/// -or-
/// The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
/// -or-
/// The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
// Token: 0x0600133A RID: 4922 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600133A")]
[Address(RVA = "0x2623980", Offset = "0x2622780", VA = "0x182623980")]
public NetworkStream(Socket socket)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.</summary>
/// <param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
/// <param name="ownsSocket">Set to <see langword="true" /> to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
/// -or-
/// the value of the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
/// -or-
/// the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
// Token: 0x0600133B RID: 4923 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600133B")]
[Address(RVA = "0x26238B0", Offset = "0x26226B0", VA = "0x1826238B0")]
public NetworkStream(Socket socket, bool ownsSocket)
{
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Net.Sockets.NetworkStream" /> supports reading.</summary>
/// <returns>
/// <see langword="true" /> if data can be read from the stream; otherwise, <see langword="false" />. The default value is <see langword="true" />.</returns>
// Token: 0x170003ED RID: 1005
// (get) Token: 0x0600133C RID: 4924 RVA: 0x00008B50 File Offset: 0x00006D50
[Token(Token = "0x170003ED")]
public override bool CanRead
{
[Token(Token = "0x600133C")]
[Address(RVA = "0x4364F0", Offset = "0x4352F0", VA = "0x1804364F0", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value that indicates whether the stream supports seeking. This property is not currently supported.This property always returns <see langword="false" />.</summary>
/// <returns>
/// <see langword="false" /> in all cases to indicate that <see cref="T:System.Net.Sockets.NetworkStream" /> cannot seek a specific location in the stream.</returns>
// Token: 0x170003EE RID: 1006
// (get) Token: 0x0600133D RID: 4925 RVA: 0x00008B68 File Offset: 0x00006D68
[Token(Token = "0x170003EE")]
public override bool CanSeek
{
[Token(Token = "0x600133D")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Net.Sockets.NetworkStream" /> supports writing.</summary>
/// <returns>
/// <see langword="true" /> if data can be written to the <see cref="T:System.Net.Sockets.NetworkStream" />; otherwise, <see langword="false" />. The default value is <see langword="true" />.</returns>
// Token: 0x170003EF RID: 1007
// (get) Token: 0x0600133E RID: 4926 RVA: 0x00008B80 File Offset: 0x00006D80
[Token(Token = "0x170003EF")]
public override bool CanWrite
{
[Token(Token = "0x600133E")]
[Address(RVA = "0x4364D0", Offset = "0x4352D0", VA = "0x1804364D0", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Gets or sets the amount of time that a read operation blocks waiting for data.</summary>
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a read operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the read operation does not time out.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
// Token: 0x170003F0 RID: 1008
// (get) Token: 0x0600133F RID: 4927 RVA: 0x00008B98 File Offset: 0x00006D98
[Token(Token = "0x170003F0")]
public override int ReadTimeout
{
[Token(Token = "0x600133F")]
[Address(RVA = "0x2623CF0", Offset = "0x2622AF0", VA = "0x182623CF0", Slot = "13")]
get
{
return 0;
}
}
/// <summary>Gets or sets the amount of time that a write operation blocks waiting for data.</summary>
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a write operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the write operation does not time out.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
// Token: 0x170003F1 RID: 1009
// (get) Token: 0x06001340 RID: 4928 RVA: 0x00008BB0 File Offset: 0x00006DB0
[Token(Token = "0x170003F1")]
public override int WriteTimeout
{
[Token(Token = "0x6001340")]
[Address(RVA = "0x2623D80", Offset = "0x2622B80", VA = "0x182623D80", Slot = "14")]
get
{
return 0;
}
}
/// <summary>Gets a value that indicates whether data is available on the <see cref="T:System.Net.Sockets.NetworkStream" /> to be read.</summary>
/// <returns>
/// <see langword="true" /> if data is available on the stream to be read; otherwise, <see langword="false" />.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">Use the <see cref="P:System.Net.Sockets.SocketException.ErrorCode" /> property to obtain the specific error code and refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.</exception>
// Token: 0x170003F2 RID: 1010
// (get) Token: 0x06001341 RID: 4929 RVA: 0x00008BC8 File Offset: 0x00006DC8
[Token(Token = "0x170003F2")]
public virtual bool DataAvailable
{
[Token(Token = "0x6001341")]
[Address(RVA = "0x2623A40", Offset = "0x2622840", VA = "0x182623A40", Slot = "31")]
get
{
return default(bool);
}
}
/// <summary>Gets the length of the data available on the stream. This property is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>The length of the data available on the stream.</returns>
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
// Token: 0x170003F3 RID: 1011
// (get) Token: 0x06001342 RID: 4930 RVA: 0x00008BE0 File Offset: 0x00006DE0
[Token(Token = "0x170003F3")]
public override long Length
{
[Token(Token = "0x6001342")]
[Address(RVA = "0x2623C10", Offset = "0x2622A10", VA = "0x182623C10", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>Gets or sets the current position in the stream. This property is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <returns>The current position in the stream.</returns>
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
// Token: 0x170003F4 RID: 1012
// (get) Token: 0x06001343 RID: 4931 RVA: 0x00008BF8 File Offset: 0x00006DF8
// (set) Token: 0x06001344 RID: 4932 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003F4")]
public override long Position
{
[Token(Token = "0x6001343")]
[Address(RVA = "0x2623C80", Offset = "0x2622A80", VA = "0x182623C80", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x6001344")]
[Address(RVA = "0x2623E10", Offset = "0x2622C10", VA = "0x182623E10", Slot = "12")]
set
{
}
}
/// <summary>Sets the current position of the stream to the given value. This method is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="offset">This parameter is not used.</param>
/// <param name="origin">This parameter is not used.</param>
/// <returns>The position in the stream.</returns>
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
// Token: 0x06001345 RID: 4933 RVA: 0x00008C10 File Offset: 0x00006E10
[Token(Token = "0x6001345")]
[Address(RVA = "0x2622EC0", Offset = "0x2621CC0", VA = "0x182622EC0", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
// Token: 0x06001346 RID: 4934 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001346")]
[Address(RVA = "0x26229D0", Offset = "0x26217D0", VA = "0x1826229D0")]
internal void InitNetworkStream(Socket socket, FileAccess Access)
{
}
/// <summary>Reads data from the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the location in memory to store data read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="offset">The location in <paramref name="buffer" /> to begin storing the data to.</param>
/// <param name="size">The number of bytes to read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <returns>The number of bytes read from the <see cref="T:System.Net.Sockets.NetworkStream" />, or 0 if the socket is closed.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
/// -or-
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
/// -or-
/// The <paramref name="size" /> parameter is less than 0.
/// -or-
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.
/// -or-
/// There is a failure reading from the network.</exception>
// Token: 0x06001347 RID: 4935 RVA: 0x00008C28 File Offset: 0x00006E28
[Token(Token = "0x6001347")]
[Address(RVA = "0x2622B30", Offset = "0x2621930", VA = "0x182622B30", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int size)
{
return 0;
}
/// <summary>Writes data to the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="offset">The location in <paramref name="buffer" /> from which to start writing data.</param>
/// <param name="size">The number of bytes to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
/// -or-
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
/// -or-
/// The <paramref name="size" /> parameter is less than 0.
/// -or-
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.IO.IOException">There was a failure while writing to the network.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.
/// -or-
/// There was a failure reading from the network.</exception>
// Token: 0x06001348 RID: 4936 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001348")]
[Address(RVA = "0x2623520", Offset = "0x2622320", VA = "0x182623520", Slot = "29")]
public override void Write(byte[] buffer, int offset, int size)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.NetworkStream" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06001349 RID: 4937 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001349")]
[Address(RVA = "0x2622300", Offset = "0x2621100", VA = "0x182622300", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
/// <summary>Releases all resources used by the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
// Token: 0x0600134A RID: 4938 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600134A")]
[Address(RVA = "0x2622900", Offset = "0x2621700", VA = "0x182622900", Slot = "1")]
protected override void Finalize()
{
}
/// <summary>Begins an asynchronous read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the location in memory to store data read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="offset">The location in <paramref name="buffer" /> to begin storing the data.</param>
/// <param name="size">The number of bytes to read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that is executed when <see cref="M:System.Net.Sockets.NetworkStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> completes.</param>
/// <param name="state">An object that contains any additional user-defined data.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
/// -or-
/// The <paramref name="offset" /> parameter is greater than the length of the <paramref name="buffer" /> paramater.
/// -or-
/// The <paramref name="size" /> is less than 0.
/// -or-
/// The <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
/// -or-
/// There was a failure while reading from the network.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
// Token: 0x0600134B RID: 4939 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600134B")]
[Address(RVA = "0x2621BC0", Offset = "0x26209C0", VA = "0x182621BC0", Slot = "19")]
public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600134C RID: 4940 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600134C")]
[Address(RVA = "0x2622FA0", Offset = "0x2621DA0", VA = "0x182622FA0", Slot = "32")]
internal virtual IAsyncResult UnsafeBeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Handles the end of an asynchronous read.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that represents an asynchronous call.</param>
/// <returns>The number of bytes read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</returns>
/// <exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
// Token: 0x0600134D RID: 4941 RVA: 0x00008C40 File Offset: 0x00006E40
[Token(Token = "0x600134D")]
[Address(RVA = "0x26223E0", Offset = "0x26211E0", VA = "0x1826223E0", Slot = "20")]
public override int EndRead(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Begins an asynchronous write to a stream.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="offset">The location in <paramref name="buffer" /> to begin sending the data.</param>
/// <param name="size">The number of bytes to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that is executed when <see cref="M:System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> completes.</param>
/// <param name="state">An object that contains any additional user-defined data.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
/// -or-
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
/// -or-
/// The <paramref name="size" /> parameter is less than 0.
/// -or-
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
/// -or-
/// There was a failure while writing to the network.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
// Token: 0x0600134E RID: 4942 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600134E")]
[Address(RVA = "0x2621F60", Offset = "0x2620D60", VA = "0x182621F60", Slot = "22")]
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600134F RID: 4943 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600134F")]
[Address(RVA = "0x2623240", Offset = "0x2622040", VA = "0x182623240", Slot = "33")]
internal virtual IAsyncResult UnsafeBeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Handles the end of an asynchronous write.</summary>
/// <param name="asyncResult">The <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
/// -or-
/// An error occurred while writing to the network.
/// -or-
/// An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
// Token: 0x06001350 RID: 4944 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001350")]
[Address(RVA = "0x2622670", Offset = "0x2621470", VA = "0x182622670", Slot = "23")]
public override void EndWrite(IAsyncResult asyncResult)
{
}
/// <summary>Flushes data from the stream. This method is reserved for future use.</summary>
// Token: 0x06001351 RID: 4945 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001351")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
/// <summary>Flushes data from the stream as an asynchronous operation.</summary>
/// <param name="cancellationToken">A cancellation token used to propagate notification that this operation should be canceled.</param>
/// <returns>The task object representing the asynchronous operation.</returns>
// Token: 0x06001352 RID: 4946 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001352")]
[Address(RVA = "0x2622980", Offset = "0x2621780", VA = "0x182622980", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// <summary>Sets the length of the stream. This method always throws a <see cref="T:System.NotSupportedException" />.</summary>
/// <param name="value">This parameter is not used.</param>
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
// Token: 0x06001353 RID: 4947 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001353")]
[Address(RVA = "0x2622F30", Offset = "0x2621D30", VA = "0x182622F30", Slot = "26")]
public override void SetLength(long value)
{
}
// Token: 0x04000BC1 RID: 3009
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000BC1")]
private Socket m_StreamSocket;
// Token: 0x04000BC2 RID: 3010
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000BC2")]
private bool m_Readable;
// Token: 0x04000BC3 RID: 3011
[global::Cpp2IlInjected.FieldOffset(Offset = "0x31")]
[Token(Token = "0x4000BC3")]
private bool m_Writeable;
// Token: 0x04000BC4 RID: 3012
[global::Cpp2IlInjected.FieldOffset(Offset = "0x32")]
[Token(Token = "0x4000BC4")]
private bool m_OwnsSocket;
// Token: 0x04000BC5 RID: 3013
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
[Token(Token = "0x4000BC5")]
private int m_CloseTimeout;
// Token: 0x04000BC6 RID: 3014
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000BC6")]
private bool m_CleanedUp;
// Token: 0x04000BC7 RID: 3015
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
[Token(Token = "0x4000BC7")]
private int m_CurrentReadTimeout;
// Token: 0x04000BC8 RID: 3016
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000BC8")]
private int m_CurrentWriteTimeout;
}
}
+112
View File
@@ -0,0 +1,112 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Specifies the protocols that the <see cref="T:System.Net.Sockets.Socket" /> class supports.</summary>
// Token: 0x020002DD RID: 733
[Token(Token = "0x20002DD")]
public enum ProtocolType
{
/// <summary>Internet Protocol.</summary>
// Token: 0x04000BCA RID: 3018
[Token(Token = "0x4000BCA")]
IP,
/// <summary>IPv6 Hop by Hop Options header.</summary>
// Token: 0x04000BCB RID: 3019
[Token(Token = "0x4000BCB")]
IPv6HopByHopOptions = 0,
/// <summary>Internet Control Message Protocol.</summary>
// Token: 0x04000BCC RID: 3020
[Token(Token = "0x4000BCC")]
Icmp,
/// <summary>Internet Group Management Protocol.</summary>
// Token: 0x04000BCD RID: 3021
[Token(Token = "0x4000BCD")]
Igmp,
/// <summary>Gateway To Gateway Protocol.</summary>
// Token: 0x04000BCE RID: 3022
[Token(Token = "0x4000BCE")]
Ggp,
/// <summary>Internet Protocol version 4.</summary>
// Token: 0x04000BCF RID: 3023
[Token(Token = "0x4000BCF")]
IPv4,
/// <summary>Transmission Control Protocol.</summary>
// Token: 0x04000BD0 RID: 3024
[Token(Token = "0x4000BD0")]
Tcp = 6,
/// <summary>PARC Universal Packet Protocol.</summary>
// Token: 0x04000BD1 RID: 3025
[Token(Token = "0x4000BD1")]
Pup = 12,
/// <summary>User Datagram Protocol.</summary>
// Token: 0x04000BD2 RID: 3026
[Token(Token = "0x4000BD2")]
Udp = 17,
/// <summary>Internet Datagram Protocol.</summary>
// Token: 0x04000BD3 RID: 3027
[Token(Token = "0x4000BD3")]
Idp = 22,
/// <summary>Internet Protocol version 6 (IPv6).</summary>
// Token: 0x04000BD4 RID: 3028
[Token(Token = "0x4000BD4")]
IPv6 = 41,
/// <summary>IPv6 Routing header.</summary>
// Token: 0x04000BD5 RID: 3029
[Token(Token = "0x4000BD5")]
IPv6RoutingHeader = 43,
/// <summary>IPv6 Fragment header.</summary>
// Token: 0x04000BD6 RID: 3030
[Token(Token = "0x4000BD6")]
IPv6FragmentHeader,
/// <summary>IPv6 Encapsulating Security Payload header.</summary>
// Token: 0x04000BD7 RID: 3031
[Token(Token = "0x4000BD7")]
IPSecEncapsulatingSecurityPayload = 50,
/// <summary>IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at https://www.ietf.org.</summary>
// Token: 0x04000BD8 RID: 3032
[Token(Token = "0x4000BD8")]
IPSecAuthenticationHeader,
/// <summary>Internet Control Message Protocol for IPv6.</summary>
// Token: 0x04000BD9 RID: 3033
[Token(Token = "0x4000BD9")]
IcmpV6 = 58,
/// <summary>IPv6 No next header.</summary>
// Token: 0x04000BDA RID: 3034
[Token(Token = "0x4000BDA")]
IPv6NoNextHeader,
/// <summary>IPv6 Destination Options header.</summary>
// Token: 0x04000BDB RID: 3035
[Token(Token = "0x4000BDB")]
IPv6DestinationOptions,
/// <summary>Net Disk Protocol (unofficial).</summary>
// Token: 0x04000BDC RID: 3036
[Token(Token = "0x4000BDC")]
ND = 77,
/// <summary>Raw IP packet protocol.</summary>
// Token: 0x04000BDD RID: 3037
[Token(Token = "0x4000BDD")]
Raw = 255,
/// <summary>Unspecified protocol.</summary>
// Token: 0x04000BDE RID: 3038
[Token(Token = "0x4000BDE")]
Unspecified = 0,
/// <summary>Internet Packet Exchange Protocol.</summary>
// Token: 0x04000BDF RID: 3039
[Token(Token = "0x4000BDF")]
Ipx = 1000,
/// <summary>Sequenced Packet Exchange protocol.</summary>
// Token: 0x04000BE0 RID: 3040
[Token(Token = "0x4000BE0")]
Spx = 1256,
/// <summary>Sequenced Packet Exchange version 2 protocol.</summary>
// Token: 0x04000BE1 RID: 3041
[Token(Token = "0x4000BE1")]
SpxII,
/// <summary>Unknown protocol.</summary>
// Token: 0x04000BE2 RID: 3042
[Token(Token = "0x4000BE2")]
Unknown = -1
}
}
+70
View File
@@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using Cpp2IlInjected;
using Microsoft.Win32.SafeHandles;
namespace System.Net.Sockets
{
// Token: 0x020002EC RID: 748
[Token(Token = "0x20002EC")]
internal sealed class SafeSocketHandle : SafeHandleZeroOrMinusOneIsInvalid
{
// Token: 0x06001410 RID: 5136 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001410")]
[Address(RVA = "0x2624760", Offset = "0x2623560", VA = "0x182624760")]
public SafeSocketHandle(IntPtr preexistingHandle, bool ownsHandle)
{
}
// Token: 0x06001411 RID: 5137 RVA: 0x000091F8 File Offset: 0x000073F8
[Token(Token = "0x6001411")]
[Address(RVA = "0x26240E0", Offset = "0x2622EE0", VA = "0x1826240E0", Slot = "7")]
protected override bool ReleaseHandle()
{
return default(bool);
}
// Token: 0x06001412 RID: 5138 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001412")]
[Address(RVA = "0x2623EA0", Offset = "0x2622CA0", VA = "0x182623EA0")]
public void RegisterForBlockingSyscall()
{
}
// Token: 0x06001413 RID: 5139 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001413")]
[Address(RVA = "0x2624590", Offset = "0x2623390", VA = "0x182624590")]
public void UnRegisterForBlockingSyscall()
{
}
// Token: 0x04000C9C RID: 3228
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000C9C")]
private List<Thread> blocking_threads;
// Token: 0x04000C9D RID: 3229
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C9D")]
private Dictionary<Thread, StackTrace> threads_stacktraces;
// Token: 0x04000C9E RID: 3230
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000C9E")]
private bool in_cleanup;
// Token: 0x04000C9F RID: 3231
[Token(Token = "0x4000C9F")]
private const int SOCKET_CLOSED = 10004;
// Token: 0x04000CA0 RID: 3232
[Token(Token = "0x4000CA0")]
private const int ABORT_RETRIES = 10;
// Token: 0x04000CA1 RID: 3233
[Token(Token = "0x4000CA1")]
private static bool THROW_ON_ABORT_RETRIES;
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Defines the polling modes for the <see cref="M:System.Net.Sockets.Socket.Poll(System.Int32,System.Net.Sockets.SelectMode)" /> method.</summary>
// Token: 0x020002DE RID: 734
[Token(Token = "0x20002DE")]
public enum SelectMode
{
/// <summary>Read status mode.</summary>
// Token: 0x04000BE4 RID: 3044
[Token(Token = "0x4000BE4")]
SelectRead,
/// <summary>Write status mode.</summary>
// Token: 0x04000BE5 RID: 3045
[Token(Token = "0x4000BE5")]
SelectWrite,
/// <summary>Error status mode.</summary>
// Token: 0x04000BE6 RID: 3046
[Token(Token = "0x4000BE6")]
SelectError
}
}
+2066
View File
@@ -0,0 +1,2066 @@
using System;
using System.Collections.Generic;
using System.Net.NetworkInformation;
using System.Threading;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Implements the Berkeley sockets interface.</summary>
// Token: 0x020002DF RID: 735
[Token(Token = "0x20002DF")]
public class Socket : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.Socket" /> class using the specified address family, socket type and protocol.</summary>
/// <param name="addressFamily">One of the <see cref="T:System.Net.Sockets.AddressFamily" /> values.</param>
/// <param name="socketType">One of the <see cref="T:System.Net.Sockets.SocketType" /> values.</param>
/// <param name="protocolType">One of the <see cref="T:System.Net.Sockets.ProtocolType" /> values.</param>
/// <exception cref="T:System.Net.Sockets.SocketException">The combination of <paramref name="addressFamily" />, <paramref name="socketType" />, and <paramref name="protocolType" /> results in an invalid socket.</exception>
// Token: 0x06001354 RID: 4948 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001354")]
[Address(RVA = "0x262DE40", Offset = "0x262CC40", VA = "0x18262DE40")]
public Socket(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
{
}
/// <summary>Gets a value indicating whether IPv4 support is available and enabled on the current host.</summary>
/// <returns>
/// <see langword="true" /> if the current host supports the IPv4 protocol; otherwise, <see langword="false" />.</returns>
// Token: 0x170003F5 RID: 1013
// (get) Token: 0x06001355 RID: 4949 RVA: 0x00008C58 File Offset: 0x00006E58
[Token(Token = "0x170003F5")]
[Obsolete]
public static bool SupportsIPv4
{
[Token(Token = "0x6001355")]
[Address(RVA = "0x262E990", Offset = "0x262D790", VA = "0x18262E990")]
get
{
return default(bool);
}
}
/// <summary>Indicates whether the underlying operating system and network adaptors support Internet Protocol version 4 (IPv4).</summary>
/// <returns>
/// <see langword="true" /> if the operating system and network adaptors support the IPv4 protocol; otherwise, <see langword="false" />.</returns>
// Token: 0x170003F6 RID: 1014
// (get) Token: 0x06001356 RID: 4950 RVA: 0x00008C70 File Offset: 0x00006E70
[Token(Token = "0x170003F6")]
public static bool OSSupportsIPv4
{
[Token(Token = "0x6001356")]
[Address(RVA = "0x262E7B0", Offset = "0x262D5B0", VA = "0x18262E7B0")]
get
{
return default(bool);
}
}
/// <summary>Gets a value that indicates whether the Framework supports IPv6 for certain obsolete <see cref="T:System.Net.Dns" /> members.</summary>
/// <returns>
/// <see langword="true" /> if the Framework supports IPv6 for certain obsolete <see cref="T:System.Net.Dns" /> methods; otherwise, <see langword="false" />.</returns>
// Token: 0x170003F7 RID: 1015
// (get) Token: 0x06001357 RID: 4951 RVA: 0x00008C88 File Offset: 0x00006E88
[Token(Token = "0x170003F7")]
[Obsolete]
public static bool SupportsIPv6
{
[Token(Token = "0x6001357")]
[Address(RVA = "0x262EA00", Offset = "0x262D800", VA = "0x18262EA00")]
get
{
return default(bool);
}
}
/// <summary>Indicates whether the underlying operating system and network adaptors support Internet Protocol version 6 (IPv6).</summary>
/// <returns>
/// <see langword="true" /> if the operating system and network adaptors support the IPv6 protocol; otherwise, <see langword="false" />.</returns>
// Token: 0x170003F8 RID: 1016
// (get) Token: 0x06001358 RID: 4952 RVA: 0x00008CA0 File Offset: 0x00006EA0
[Token(Token = "0x170003F8")]
public static bool OSSupportsIPv6
{
[Token(Token = "0x6001358")]
[Address(RVA = "0x262E820", Offset = "0x262D620", VA = "0x18262E820")]
get
{
return default(bool);
}
}
/// <summary>Gets the operating system handle for the <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>An <see cref="T:System.IntPtr" /> that represents the operating system handle for the <see cref="T:System.Net.Sockets.Socket" />.</returns>
// Token: 0x170003F9 RID: 1017
// (get) Token: 0x06001359 RID: 4953 RVA: 0x00008CB8 File Offset: 0x00006EB8
[Token(Token = "0x170003F9")]
public IntPtr Handle
{
[Token(Token = "0x6001359")]
[Address(RVA = "0xA591C0", Offset = "0xA57FC0", VA = "0x180A591C0")]
get
{
return 0;
}
}
/// <summary>Gets the address family of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>One of the <see cref="T:System.Net.Sockets.AddressFamily" /> values.</returns>
// Token: 0x170003FA RID: 1018
// (get) Token: 0x0600135A RID: 4954 RVA: 0x00008CD0 File Offset: 0x00006ED0
[Token(Token = "0x170003FA")]
public AddressFamily AddressFamily
{
[Token(Token = "0x600135A")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
get
{
return AddressFamily.Unspecified;
}
}
/// <summary>Gets the type of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>One of the <see cref="T:System.Net.Sockets.SocketType" /> values.</returns>
// Token: 0x170003FB RID: 1019
// (get) Token: 0x0600135B RID: 4955 RVA: 0x00008CE8 File Offset: 0x00006EE8
[Token(Token = "0x170003FB")]
public SocketType SocketType
{
[Token(Token = "0x600135B")]
[Address(RVA = "0x41F5B0", Offset = "0x41E3B0", VA = "0x18041F5B0")]
get
{
return (SocketType)0;
}
}
/// <summary>Gets the protocol type of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>One of the <see cref="T:System.Net.Sockets.ProtocolType" /> values.</returns>
// Token: 0x170003FC RID: 1020
// (get) Token: 0x0600135C RID: 4956 RVA: 0x00008D00 File Offset: 0x00006F00
[Token(Token = "0x170003FC")]
public ProtocolType ProtocolType
{
[Token(Token = "0x600135C")]
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")]
get
{
return ProtocolType.IP;
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the <see cref="T:System.Net.Sockets.Socket" /> allows only one process to bind to a port.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> allows only one socket to bind to a specific port; otherwise, <see langword="false" />. The default is <see langword="true" /> for Windows Server 2003 and Windows XP Service Pack 2, and <see langword="false" /> for all other versions.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> has been called for this <see cref="T:System.Net.Sockets.Socket" />.</exception>
// Token: 0x170003FD RID: 1021
// (get) Token: 0x0600135D RID: 4957 RVA: 0x00008D18 File Offset: 0x00006F18
// (set) Token: 0x0600135E RID: 4958 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003FD")]
public bool ExclusiveAddressUse
{
[Token(Token = "0x600135D")]
[Address(RVA = "0x262E310", Offset = "0x262D110", VA = "0x18262E310")]
get
{
return default(bool);
}
[Token(Token = "0x600135E")]
[Address(RVA = "0x262EC70", Offset = "0x262DA70", VA = "0x18262EC70")]
set
{
}
}
/// <summary>Gets or sets a value that specifies the amount of time after which a synchronous <see cref="Overload:System.Net.Sockets.Socket.Receive" /> call will time out.</summary>
/// <returns>The time-out value, in milliseconds. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified for a set operation is less than -1.</exception>
// Token: 0x170003FE RID: 1022
// (set) Token: 0x0600135F RID: 4959 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003FE")]
public int ReceiveTimeout
{
[Token(Token = "0x600135F")]
[Address(RVA = "0x262EDA0", Offset = "0x262DBA0", VA = "0x18262EDA0")]
set
{
}
}
/// <summary>Gets or sets a value that specifies the amount of time after which a synchronous <see cref="Overload:System.Net.Sockets.Socket.Send" /> call will time out.</summary>
/// <returns>The time-out value, in milliseconds. If you set the property with a value between 1 and 499, the value will be changed to 500. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified for a set operation is less than -1.</exception>
// Token: 0x170003FF RID: 1023
// (set) Token: 0x06001360 RID: 4960 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x170003FF")]
public int SendTimeout
{
[Token(Token = "0x6001360")]
[Address(RVA = "0x262EE40", Offset = "0x262DC40", VA = "0x18262EE40")]
set
{
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the <see cref="T:System.Net.Sockets.Socket" /> allows Internet Protocol (IP) datagrams to be fragmented.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> allows datagram fragmentation; otherwise, <see langword="false" />. The default is <see langword="true" />.</returns>
/// <exception cref="T:System.NotSupportedException">This property can be set only for sockets in the <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> families.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x17000400 RID: 1024
// (set) Token: 0x06001361 RID: 4961 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000400")]
public bool DontFragment
{
[Token(Token = "0x6001361")]
[Address(RVA = "0x262EB30", Offset = "0x262D930", VA = "0x18262EB30")]
set
{
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the <see cref="T:System.Net.Sockets.Socket" /> is a dual-mode socket used for both IPv4 and IPv6.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> is a dual-mode socket; otherwise, <see langword="false" />. The default is <see langword="false" />.</returns>
// Token: 0x17000401 RID: 1025
// (get) Token: 0x06001362 RID: 4962 RVA: 0x00008D30 File Offset: 0x00006F30
// (set) Token: 0x06001363 RID: 4963 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000401")]
public bool DualMode
{
[Token(Token = "0x6001362")]
[Address(RVA = "0x262E250", Offset = "0x262D050", VA = "0x18262E250")]
get
{
return default(bool);
}
[Token(Token = "0x6001363")]
[Address(RVA = "0x262EBD0", Offset = "0x262D9D0", VA = "0x18262EBD0")]
set
{
}
}
// Token: 0x17000402 RID: 1026
// (get) Token: 0x06001364 RID: 4964 RVA: 0x00008D48 File Offset: 0x00006F48
[Token(Token = "0x17000402")]
private bool IsDualMode
{
[Token(Token = "0x6001364")]
[Address(RVA = "0x262E5F0", Offset = "0x262D3F0", VA = "0x18262E5F0")]
get
{
return default(bool);
}
}
// Token: 0x06001365 RID: 4965 RVA: 0x00008D60 File Offset: 0x00006F60
[Token(Token = "0x6001365")]
[Address(RVA = "0x26286A0", Offset = "0x26274A0", VA = "0x1826286A0")]
internal bool CanTryAddressFamily(AddressFamily family)
{
return default(bool);
}
/// <summary>Establishes a connection to a remote host. The host is specified by an array of IP addresses and a port number.</summary>
/// <param name="addresses">The IP addresses of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="addresses" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">This method is valid for sockets in the <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> families.</exception>
/// <exception cref="T:System.ArgumentException">The length of <paramref name="address" /> is zero.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />.</exception>
// Token: 0x06001366 RID: 4966 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001366")]
[Address(RVA = "0x26288C0", Offset = "0x26276C0", VA = "0x1826288C0")]
public void Connect(IPAddress[] addresses, int port)
{
}
/// <summary>Sends data to a connected <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to be sent.</param>
/// <returns>The number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001367 RID: 4967 RVA: 0x00008D78 File Offset: 0x00006F78
[Token(Token = "0x6001367")]
[Address(RVA = "0x262C560", Offset = "0x262B360", VA = "0x18262C560")]
public int Send(byte[] buffer)
{
return 0;
}
/// <summary>Sends the set of buffers in the list to a connected <see cref="T:System.Net.Sockets.Socket" />, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffers">A list of <see cref="T:System.ArraySegment`1" />s of type <see cref="T:System.Byte" /> that contains the data to be sent.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <returns>The number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffers" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="buffers" /> is empty.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001368 RID: 4968 RVA: 0x00008D90 File Offset: 0x00006F90
[Token(Token = "0x6001368")]
[Address(RVA = "0x262C310", Offset = "0x262B110", VA = "0x18262C310")]
public int Send(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags)
{
return 0;
}
/// <summary>Sends the specified number of bytes of data to a connected <see cref="T:System.Net.Sockets.Socket" />, starting at the specified offset, and using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to be sent.</param>
/// <param name="offset">The position in the data buffer at which to begin sending data.</param>
/// <param name="size">The number of bytes to send.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <returns>The number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">
/// <paramref name="socketFlags" /> is not a valid combination of values.
/// -or-
/// An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001369 RID: 4969 RVA: 0x00008DA8 File Offset: 0x00006FA8
[Token(Token = "0x6001369")]
[Address(RVA = "0x262C5A0", Offset = "0x262B3A0", VA = "0x18262C5A0")]
public int Send(byte[] buffer, int offset, int size, SocketFlags socketFlags)
{
return 0;
}
/// <summary>Receives data from a bound <see cref="T:System.Net.Sockets.Socket" /> into a receive buffer, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for the received data.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
// Token: 0x0600136A RID: 4970 RVA: 0x00008DC0 File Offset: 0x00006FC0
[Token(Token = "0x600136A")]
[Address(RVA = "0x262B770", Offset = "0x262A570", VA = "0x18262B770")]
public int Receive(byte[] buffer, SocketFlags socketFlags)
{
return 0;
}
/// <summary>Receives data from a bound <see cref="T:System.Net.Sockets.Socket" /> into a receive buffer.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for the received data.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
// Token: 0x0600136B RID: 4971 RVA: 0x00008DD8 File Offset: 0x00006FD8
[Token(Token = "0x600136B")]
[Address(RVA = "0x262BDD0", Offset = "0x262ABD0", VA = "0x18262BDD0")]
public int Receive(byte[] buffer)
{
return 0;
}
/// <summary>Receives the specified number of bytes from a bound <see cref="T:System.Net.Sockets.Socket" /> into the specified offset position of the receive buffer, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for received data.</param>
/// <param name="offset">The location in <paramref name="buffer" /> to store the received data.</param>
/// <param name="size">The number of bytes to receive.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">
/// <paramref name="socketFlags" /> is not a valid combination of values.
/// -or-
/// The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property was not set.
/// -or-
/// An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
// Token: 0x0600136C RID: 4972 RVA: 0x00008DF0 File Offset: 0x00006FF0
[Token(Token = "0x600136C")]
[Address(RVA = "0x262BE10", Offset = "0x262AC10", VA = "0x18262BE10")]
public int Receive(byte[] buffer, int offset, int size, SocketFlags socketFlags)
{
return 0;
}
/// <summary>Receives data from a bound <see cref="T:System.Net.Sockets.Socket" /> into the list of receive buffers, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffers">A list of <see cref="T:System.ArraySegment`1" />s of type <see cref="T:System.Byte" /> that contains the received data.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffers" /> is <see langword="null" />.
/// -or-
/// <paramref name="buffers" />.Count is zero.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x0600136D RID: 4973 RVA: 0x00008E08 File Offset: 0x00007008
[Token(Token = "0x600136D")]
[Address(RVA = "0x262B7B0", Offset = "0x262A5B0", VA = "0x18262B7B0")]
public int Receive(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags)
{
return 0;
}
/// <summary>Sets low-level operating modes for the <see cref="T:System.Net.Sockets.Socket" /> using the <see cref="T:System.Net.Sockets.IOControlCode" /> enumeration to specify control codes.</summary>
/// <param name="ioControlCode">A <see cref="T:System.Net.Sockets.IOControlCode" /> value that specifies the control code of the operation to perform.</param>
/// <param name="optionInValue">An array of type <see cref="T:System.Byte" /> that contains the input data required by the operation.</param>
/// <param name="optionOutValue">An array of type <see cref="T:System.Byte" /> that contains the output data returned by the operation.</param>
/// <returns>The number of bytes in the <paramref name="optionOutValue" /> parameter.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">An attempt was made to change the blocking mode without using the <see cref="P:System.Net.Sockets.Socket.Blocking" /> property.</exception>
// Token: 0x0600136E RID: 4974 RVA: 0x00008E20 File Offset: 0x00007020
[Token(Token = "0x600136E")]
[Address(RVA = "0x262A290", Offset = "0x2629090", VA = "0x18262A290")]
public int IOControl(IOControlCode ioControlCode, byte[] optionInValue, byte[] optionOutValue)
{
return 0;
}
/// <summary>Set the IP protection level on a socket.</summary>
/// <param name="level">The IP protection level to set on this socket.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="level" /> parameter cannot be <see cref="F:System.Net.Sockets.IPProtectionLevel.Unspecified" />. The IP protection level cannot be set to unspecified.</exception>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Net.Sockets.AddressFamily" /> of the socket must be either <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" />.</exception>
// Token: 0x0600136F RID: 4975 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600136F")]
[Address(RVA = "0x262CBE0", Offset = "0x262B9E0", VA = "0x18262CBE0")]
public void SetIPProtectionLevel(IPProtectionLevel level)
{
}
/// <summary>Begins an asynchronous request for a remote host connection. The host is specified by an <see cref="T:System.Net.IPAddress" /> and a port number.</summary>
/// <param name="address">The <see cref="T:System.Net.IPAddress" /> of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <param name="requestCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the connect operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the connect operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous connection.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="address" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Net.Sockets.Socket" /> is not in the socket family.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.ArgumentException">The length of <paramref name="address" /> is zero.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />, or an asynchronous operation is already in progress.</exception>
// Token: 0x06001370 RID: 4976 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001370")]
[Address(RVA = "0x2626D70", Offset = "0x2625B70", VA = "0x182626D70")]
public IAsyncResult BeginConnect(IPAddress address, int port, AsyncCallback requestCallback, object state)
{
return null;
}
/// <summary>Sends data asynchronously to a connected <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to send.</param>
/// <param name="offset">The zero-based position in the <paramref name="buffer" /> parameter at which to begin sending data.</param>
/// <param name="size">The number of bytes to send.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate.</param>
/// <param name="state">An object that contains state information for this request.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous send.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks section below.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is less than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001371 RID: 4977 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001371")]
[Address(RVA = "0x2627FC0", Offset = "0x2626DC0", VA = "0x182627FC0")]
public IAsyncResult BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Ends a pending asynchronous send.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information for this asynchronous operation.</param>
/// <returns>If successful, the number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />; otherwise, an invalid <see cref="T:System.Net.Sockets.Socket" /> error.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndSend(System.IAsyncResult)" /> was previously called for the asynchronous send.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001372 RID: 4978 RVA: 0x00008E38 File Offset: 0x00007038
[Token(Token = "0x6001372")]
[Address(RVA = "0x2629C80", Offset = "0x2628A80", VA = "0x182629C80")]
public int EndSend(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Begins to asynchronously receive data from a connected <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for the received data.</param>
/// <param name="offset">The zero-based position in the <paramref name="buffer" /> parameter at which to store the received data.</param>
/// <param name="size">The number of bytes to receive.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="callback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the receive operation. This object is passed to the <see cref="M:System.Net.Sockets.Socket.EndReceive(System.IAsyncResult)" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous read.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">
/// <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
// Token: 0x06001373 RID: 4979 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001373")]
[Address(RVA = "0x2627660", Offset = "0x2626460", VA = "0x182627660")]
public IAsyncResult BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Ends a pending asynchronous read.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information and any user defined data for this asynchronous operation.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginReceive(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndReceive(System.IAsyncResult)" /> was previously called for the asynchronous read.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001374 RID: 4980 RVA: 0x00008E50 File Offset: 0x00007050
[Token(Token = "0x6001374")]
[Address(RVA = "0x26299D0", Offset = "0x26287D0", VA = "0x1826299D0")]
public int EndReceive(IAsyncResult asyncResult)
{
return 0;
}
// Token: 0x17000403 RID: 1027
// (get) Token: 0x06001375 RID: 4981 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000403")]
private static object InternalSyncObject
{
[Token(Token = "0x6001375")]
[Address(RVA = "0x262E4F0", Offset = "0x262D2F0", VA = "0x18262E4F0")]
get
{
return null;
}
}
// Token: 0x17000404 RID: 1028
// (get) Token: 0x06001376 RID: 4982 RVA: 0x00008E68 File Offset: 0x00007068
[Token(Token = "0x17000404")]
internal bool CleanedUp
{
[Token(Token = "0x6001376")]
[Address(RVA = "0x262E240", Offset = "0x262D040", VA = "0x18262E240")]
get
{
return default(bool);
}
}
// Token: 0x06001377 RID: 4983 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001377")]
[Address(RVA = "0x262A570", Offset = "0x2629370", VA = "0x18262A570")]
internal static void InitializeSockets()
{
}
/// <summary>Releases all resources used by the current instance of the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
// Token: 0x06001378 RID: 4984 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001378")]
[Address(RVA = "0x2629490", Offset = "0x2628290", VA = "0x182629490", Slot = "4")]
public void Dispose()
{
}
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
// Token: 0x06001379 RID: 4985 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001379")]
[Address(RVA = "0x2629DA0", Offset = "0x2628BA0", VA = "0x182629DA0", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x0600137A RID: 4986 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600137A")]
[Address(RVA = "0x262A910", Offset = "0x2629710", VA = "0x18262A910")]
internal void InternalShutdown(SocketShutdown how)
{
}
// Token: 0x0600137B RID: 4987 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600137B")]
[Address(RVA = "0x262D780", Offset = "0x262C580", VA = "0x18262D780")]
internal IAsyncResult UnsafeBeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600137C RID: 4988 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600137C")]
[Address(RVA = "0x262D770", Offset = "0x262C570", VA = "0x18262D770")]
internal IAsyncResult UnsafeBeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x0600137D RID: 4989 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600137D")]
[Address(RVA = "0x262DD40", Offset = "0x262CB40", VA = "0x18262DD40")]
internal Socket(AddressFamily family, SocketType type, ProtocolType proto, SafeSocketHandle safe_handle)
{
}
// Token: 0x0600137E RID: 4990 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600137E")]
[Address(RVA = "0x262D340", Offset = "0x262C140", VA = "0x18262D340")]
private void SocketDefaults()
{
}
// Token: 0x0600137F RID: 4991 RVA: 0x00008E80 File Offset: 0x00007080
[Token(Token = "0x600137F")]
[Address(RVA = "0x262D4B0", Offset = "0x262C2B0", VA = "0x18262D4B0")]
private IntPtr Socket_internal(AddressFamily family, SocketType type, ProtocolType proto, out int error)
{
return 0;
}
/// <summary>Gets the amount of data that has been received from the network and is available to be read.</summary>
/// <returns>The number of bytes of data received from the network and available to be read.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x17000405 RID: 1029
// (get) Token: 0x06001380 RID: 4992 RVA: 0x00008E98 File Offset: 0x00007098
[Token(Token = "0x17000405")]
public int Available
{
[Token(Token = "0x6001380")]
[Address(RVA = "0x262E190", Offset = "0x262CF90", VA = "0x18262E190")]
get
{
return 0;
}
}
// Token: 0x06001381 RID: 4993 RVA: 0x00008EB0 File Offset: 0x000070B0
[Token(Token = "0x6001381")]
[Address(RVA = "0x26268D0", Offset = "0x26256D0", VA = "0x1826268D0")]
private static int Available_internal(SafeSocketHandle safeHandle, out int error)
{
return 0;
}
// Token: 0x06001382 RID: 4994 RVA: 0x00008EC8 File Offset: 0x000070C8
[Token(Token = "0x6001382")]
[Address(RVA = "0x26269D0", Offset = "0x26257D0", VA = "0x1826269D0")]
private static int Available_internal(IntPtr socket, out int error)
{
return 0;
}
/// <summary>Gets a value that indicates whether the <see cref="T:System.Net.Sockets.Socket" /> is bound to a specific local port.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> is bound to a local port; otherwise, <see langword="false" />.</returns>
// Token: 0x17000406 RID: 1030
// (get) Token: 0x06001383 RID: 4995 RVA: 0x00008EE0 File Offset: 0x000070E0
[Token(Token = "0x17000406")]
public bool IsBound
{
[Token(Token = "0x6001383")]
[Address(RVA = "0xAF8AC0", Offset = "0xAF78C0", VA = "0x180AF8AC0")]
get
{
return default(bool);
}
}
/// <summary>Gets the local endpoint.</summary>
/// <returns>The <see cref="T:System.Net.EndPoint" /> that the <see cref="T:System.Net.Sockets.Socket" /> is using for communications.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x17000407 RID: 1031
// (get) Token: 0x06001384 RID: 4996 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000407")]
public EndPoint LocalEndPoint
{
[Token(Token = "0x6001384")]
[Address(RVA = "0x262E6C0", Offset = "0x262D4C0", VA = "0x18262E6C0")]
get
{
return null;
}
}
// Token: 0x06001385 RID: 4997 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001385")]
[Address(RVA = "0x262AD60", Offset = "0x2629B60", VA = "0x18262AD60")]
private static SocketAddress LocalEndPoint_internal(SafeSocketHandle safeHandle, int family, out int error)
{
return null;
}
// Token: 0x06001386 RID: 4998 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001386")]
[Address(RVA = "0x262AE70", Offset = "0x2629C70", VA = "0x18262AE70")]
private static SocketAddress LocalEndPoint_internal(IntPtr socket, int family, out int error)
{
return null;
}
/// <summary>Gets or sets a value that indicates whether the <see cref="T:System.Net.Sockets.Socket" /> is in blocking mode.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> will block; otherwise, <see langword="false" />. The default is <see langword="true" />.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x17000408 RID: 1032
// (get) Token: 0x06001387 RID: 4999 RVA: 0x00008EF8 File Offset: 0x000070F8
// (set) Token: 0x06001388 RID: 5000 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000408")]
public bool Blocking
{
[Token(Token = "0x6001387")]
[Address(RVA = "0x4C2F40", Offset = "0x4C1D40", VA = "0x1804C2F40")]
get
{
return default(bool);
}
[Token(Token = "0x6001388")]
[Address(RVA = "0x262EA70", Offset = "0x262D870", VA = "0x18262EA70")]
set
{
}
}
// Token: 0x06001389 RID: 5001 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001389")]
[Address(RVA = "0x2628590", Offset = "0x2627390", VA = "0x182628590")]
private static void Blocking_internal(SafeSocketHandle safeHandle, bool block, out int error)
{
}
// Token: 0x0600138A RID: 5002 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600138A")]
[Address(RVA = "0x2628690", Offset = "0x2627490", VA = "0x182628690")]
internal static void Blocking_internal(IntPtr socket, bool block, out int error)
{
}
/// <summary>Gets a value that indicates whether a <see cref="T:System.Net.Sockets.Socket" /> is connected to a remote host as of the last <see cref="Overload:System.Net.Sockets.Socket.Send" /> or <see cref="Overload:System.Net.Sockets.Socket.Receive" /> operation.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> was connected to a remote resource as of the most recent operation; otherwise, <see langword="false" />.</returns>
// Token: 0x17000409 RID: 1033
// (get) Token: 0x0600138B RID: 5003 RVA: 0x00008F10 File Offset: 0x00007110
[Token(Token = "0x17000409")]
public bool Connected
{
[Token(Token = "0x600138B")]
[Address(RVA = "0x4C2FE0", Offset = "0x4C1DE0", VA = "0x1804C2FE0")]
get
{
return default(bool);
}
}
/// <summary>Gets or sets a <see cref="T:System.Boolean" /> value that specifies whether the stream <see cref="T:System.Net.Sockets.Socket" /> is using the Nagle algorithm.</summary>
/// <returns>
/// <see langword="false" /> if the <see cref="T:System.Net.Sockets.Socket" /> uses the Nagle algorithm; otherwise, <see langword="true" />. The default is <see langword="false" />.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x1700040A RID: 1034
// (set) Token: 0x0600138C RID: 5004 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700040A")]
public bool NoDelay
{
[Token(Token = "0x600138C")]
[Address(RVA = "0x262ED10", Offset = "0x262DB10", VA = "0x18262ED10")]
set
{
}
}
/// <summary>Gets the remote endpoint.</summary>
/// <returns>The <see cref="T:System.Net.EndPoint" /> with which the <see cref="T:System.Net.Sockets.Socket" /> is communicating.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x1700040B RID: 1035
// (get) Token: 0x0600138D RID: 5005 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700040B")]
public EndPoint RemoteEndPoint
{
[Token(Token = "0x600138D")]
[Address(RVA = "0x262E890", Offset = "0x262D690", VA = "0x18262E890")]
get
{
return null;
}
}
// Token: 0x0600138E RID: 5006 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600138E")]
[Address(RVA = "0x262BFA0", Offset = "0x262ADA0", VA = "0x18262BFA0")]
private static SocketAddress RemoteEndPoint_internal(SafeSocketHandle safeHandle, int family, out int error)
{
return null;
}
// Token: 0x0600138F RID: 5007 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600138F")]
[Address(RVA = "0x262BF90", Offset = "0x262AD90", VA = "0x18262BF90")]
private static SocketAddress RemoteEndPoint_internal(IntPtr socket, int family, out int error)
{
return null;
}
/// <summary>Determines the status of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="microSeconds">The time to wait for a response, in microseconds.</param>
/// <param name="mode">One of the <see cref="T:System.Net.Sockets.SelectMode" /> values.</param>
/// <returns>The status of the <see cref="T:System.Net.Sockets.Socket" /> based on the polling mode value passed in the <paramref name="mode" /> parameter.
/// Mode
///
/// Return Value
///
/// <see cref="F:System.Net.Sockets.SelectMode.SelectRead" /><see langword="true" /> if <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> has been called and a connection is pending;
///
/// -or-
///
/// <see langword="true" /> if data is available for reading;
///
/// -or-
///
/// <see langword="true" /> if the connection has been closed, reset, or terminated;
///
/// otherwise, returns <see langword="false" />.
///
/// <see cref="F:System.Net.Sockets.SelectMode.SelectWrite" /><see langword="true" />, if processing a <see cref="M:System.Net.Sockets.Socket.Connect(System.Net.EndPoint)" />, and the connection has succeeded;
///
/// -or-
///
/// <see langword="true" /> if data can be sent;
///
/// otherwise, returns <see langword="false" />.
///
/// <see cref="F:System.Net.Sockets.SelectMode.SelectError" /><see langword="true" /> if processing a <see cref="M:System.Net.Sockets.Socket.Connect(System.Net.EndPoint)" /> that does not block, and the connection has failed;
///
/// -or-
///
/// <see langword="true" /> if <see cref="F:System.Net.Sockets.SocketOptionName.OutOfBandInline" /> is not set and out-of-band data is available;
///
/// otherwise, returns <see langword="false" />.</returns>
/// <exception cref="T:System.NotSupportedException">The <paramref name="mode" /> parameter is not one of the <see cref="T:System.Net.Sockets.SelectMode" /> values.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks below.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001390 RID: 5008 RVA: 0x00008F28 File Offset: 0x00007128
[Token(Token = "0x6001390")]
[Address(RVA = "0x262AFB0", Offset = "0x2629DB0", VA = "0x18262AFB0")]
public bool Poll(int microSeconds, SelectMode mode)
{
return default(bool);
}
// Token: 0x06001391 RID: 5009 RVA: 0x00008F40 File Offset: 0x00007140
[Token(Token = "0x6001391")]
[Address(RVA = "0x262AE90", Offset = "0x2629C90", VA = "0x18262AE90")]
private static bool Poll_internal(SafeSocketHandle safeHandle, SelectMode mode, int timeout, out int error)
{
return default(bool);
}
// Token: 0x06001392 RID: 5010 RVA: 0x00008F58 File Offset: 0x00007158
[Token(Token = "0x6001392")]
[Address(RVA = "0x262AE80", Offset = "0x2629C80", VA = "0x18262AE80")]
private static bool Poll_internal(IntPtr socket, SelectMode mode, int timeout, out int error)
{
return default(bool);
}
/// <summary>Creates a new <see cref="T:System.Net.Sockets.Socket" /> for a newly created connection.</summary>
/// <returns>A <see cref="T:System.Net.Sockets.Socket" /> for a newly created connection.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.Accept" />.</exception>
// Token: 0x06001393 RID: 5011 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001393")]
[Address(RVA = "0x2626790", Offset = "0x2625590", VA = "0x182626790")]
public Socket Accept()
{
return null;
}
// Token: 0x06001394 RID: 5012 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001394")]
[Address(RVA = "0x2626670", Offset = "0x2625470", VA = "0x182626670")]
internal void Accept(Socket acceptSocket)
{
}
/// <summary>Begins an asynchronous operation to accept an incoming connection attempt.</summary>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate.</param>
/// <param name="state">An object that contains state information for this request.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous <see cref="T:System.Net.Sockets.Socket" /> creation.</returns>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
/// <exception cref="T:System.InvalidOperationException">The accepting socket is not listening for connections. You must call <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> and <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> before calling <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.
/// -or-
/// The accepted socket is bound.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="receiveSize" /> is less than 0.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
// Token: 0x06001395 RID: 5013 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001395")]
[Address(RVA = "0x26269E0", Offset = "0x26257E0", VA = "0x1826269E0")]
public IAsyncResult BeginAccept(AsyncCallback callback, object state)
{
return null;
}
/// <summary>Asynchronously accepts an incoming connection attempt and creates a new <see cref="T:System.Net.Sockets.Socket" /> to handle remote host communication.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information for this asynchronous operation as well as any user defined data.</param>
/// <returns>A <see cref="T:System.Net.Sockets.Socket" /> to handle communication with the remote host.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not created by a call to <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See the Remarks section for more information.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndAccept(System.IAsyncResult)" /> method was previously called.</exception>
/// <exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
// Token: 0x06001396 RID: 5014 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001396")]
[Address(RVA = "0x26295E0", Offset = "0x26283E0", VA = "0x1826295E0")]
public Socket EndAccept(IAsyncResult asyncResult)
{
return null;
}
/// <summary>Asynchronously accepts an incoming connection attempt and creates a new <see cref="T:System.Net.Sockets.Socket" /> object to handle remote host communication. This method returns a buffer that contains the initial data and the number of bytes transferred.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the bytes transferred.</param>
/// <param name="bytesTransferred">The number of bytes transferred.</param>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> object that stores state information for this asynchronous operation as well as any user defined data.</param>
/// <returns>A <see cref="T:System.Net.Sockets.Socket" /> object to handle communication with the remote host.</returns>
/// <exception cref="T:System.NotSupportedException">Windows NT is required for this method.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is empty.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not created by a call to <see cref="M:System.Net.Sockets.Socket.BeginAccept(System.AsyncCallback,System.Object)" />.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndAccept(System.IAsyncResult)" /> method was previously called.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the <see cref="T:System.Net.Sockets.Socket" />.</exception>
// Token: 0x06001397 RID: 5015 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001397")]
[Address(RVA = "0x2629500", Offset = "0x2628300", VA = "0x182629500")]
public Socket EndAccept(out byte[] buffer, out int bytesTransferred, IAsyncResult asyncResult)
{
return null;
}
// Token: 0x06001398 RID: 5016 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001398")]
[Address(RVA = "0x2626540", Offset = "0x2625340", VA = "0x182626540")]
private static SafeSocketHandle Accept_internal(SafeSocketHandle safeHandle, out int error, bool blocking)
{
return null;
}
// Token: 0x06001399 RID: 5017 RVA: 0x00008F70 File Offset: 0x00007170
[Token(Token = "0x6001399")]
[Address(RVA = "0x2626530", Offset = "0x2625330", VA = "0x182626530")]
private static IntPtr Accept_internal(IntPtr sock, out int error, bool blocking)
{
return 0;
}
/// <summary>Associates a <see cref="T:System.Net.Sockets.Socket" /> with a local endpoint.</summary>
/// <param name="localEP">The local <see cref="T:System.Net.EndPoint" /> to associate with the <see cref="T:System.Net.Sockets.Socket" />.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="localEP" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
// Token: 0x0600139A RID: 5018 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139A")]
[Address(RVA = "0x2628410", Offset = "0x2627210", VA = "0x182628410")]
public void Bind(EndPoint localEP)
{
}
// Token: 0x0600139B RID: 5019 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139B")]
[Address(RVA = "0x2628300", Offset = "0x2627100", VA = "0x182628300")]
private static void Bind_internal(SafeSocketHandle safeHandle, SocketAddress sa, out int error)
{
}
// Token: 0x0600139C RID: 5020 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139C")]
[Address(RVA = "0x2628400", Offset = "0x2627200", VA = "0x182628400")]
private static void Bind_internal(IntPtr sock, SocketAddress sa, out int error)
{
}
/// <summary>Places a <see cref="T:System.Net.Sockets.Socket" /> in a listening state.</summary>
/// <param name="backlog">The maximum length of the pending connections queue.</param>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x0600139D RID: 5021 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139D")]
[Address(RVA = "0x262AC60", Offset = "0x2629A60", VA = "0x18262AC60")]
public void Listen(int backlog)
{
}
// Token: 0x0600139E RID: 5022 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139E")]
[Address(RVA = "0x262AB60", Offset = "0x2629960", VA = "0x18262AB60")]
private static void Listen_internal(SafeSocketHandle safeHandle, int backlog, out int error)
{
}
// Token: 0x0600139F RID: 5023 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600139F")]
[Address(RVA = "0x262AB50", Offset = "0x2629950", VA = "0x18262AB50")]
private static void Listen_internal(IntPtr sock, int backlog, out int error)
{
}
/// <summary>Establishes a connection to a remote host. The host is specified by an IP address and a port number.</summary>
/// <param name="address">The IP address of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="address" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">This method is valid for sockets in the <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> families.</exception>
/// <exception cref="T:System.ArgumentException">The length of <paramref name="address" /> is zero.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />.</exception>
// Token: 0x060013A0 RID: 5024 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A0")]
[Address(RVA = "0x2629050", Offset = "0x2627E50", VA = "0x182629050")]
public void Connect(IPAddress address, int port)
{
}
/// <summary>Establishes a connection to a remote host. The host is specified by a host name and a port number.</summary>
/// <param name="host">The name of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="host" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">This method is valid for sockets in the <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> families.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />.</exception>
// Token: 0x060013A1 RID: 5025 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A1")]
[Address(RVA = "0x2629010", Offset = "0x2627E10", VA = "0x182629010")]
public void Connect(string host, int port)
{
}
/// <summary>Establishes a connection to a remote host.</summary>
/// <param name="remoteEP">An <see cref="T:System.Net.EndPoint" /> that represents the remote device.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="remoteEP" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />.</exception>
// Token: 0x060013A2 RID: 5026 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A2")]
[Address(RVA = "0x2628C60", Offset = "0x2627A60", VA = "0x182628C60")]
public void Connect(EndPoint remoteEP)
{
}
/// <summary>Begins an asynchronous request for a remote host connection. The host is specified by a host name and a port number.</summary>
/// <param name="host">The name of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <param name="requestCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the connect operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the connect operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous connection.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="host" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">This method is valid for sockets in the <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" /> families.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />, or an asynchronous operation is already in progress.</exception>
// Token: 0x060013A3 RID: 5027 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013A3")]
[Address(RVA = "0x2627080", Offset = "0x2625E80", VA = "0x182627080")]
public IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)
{
return null;
}
/// <summary>Begins an asynchronous request for a remote host connection.</summary>
/// <param name="remoteEP">An <see cref="T:System.Net.EndPoint" /> that represents the remote host.</param>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate.</param>
/// <param name="state">An object that contains state information for this request.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous connection.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="remoteEP" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />, or an asynchronous operation is already in progress.</exception>
// Token: 0x060013A4 RID: 5028 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013A4")]
[Address(RVA = "0x26271F0", Offset = "0x2625FF0", VA = "0x1826271F0")]
public IAsyncResult BeginConnect(EndPoint remoteEP, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Begins an asynchronous request for a remote host connection. The host is specified by an <see cref="T:System.Net.IPAddress" /> array and a port number.</summary>
/// <param name="addresses">At least one <see cref="T:System.Net.IPAddress" />, designating the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <param name="requestCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the connect operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the connect operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous connections.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="addresses" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.NotSupportedException">This method is valid for sockets that use <see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> or <see cref="F:System.Net.Sockets.AddressFamily.InterNetworkV6" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
/// <exception cref="T:System.ArgumentException">The length of <paramref name="address" /> is zero.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.Socket" /> has been placed in a listening state by calling <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" />, or an asynchronous operation is already in progress.</exception>
// Token: 0x060013A5 RID: 5029 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013A5")]
[Address(RVA = "0x2626B70", Offset = "0x2625970", VA = "0x182626B70")]
public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback requestCallback, object state)
{
return null;
}
// Token: 0x060013A6 RID: 5030 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A6")]
[Address(RVA = "0x2627320", Offset = "0x2626120", VA = "0x182627320")]
private static void BeginMConnect(SocketAsyncResult sockares)
{
}
// Token: 0x060013A7 RID: 5031 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A7")]
[Address(RVA = "0x2627850", Offset = "0x2626650", VA = "0x182627850")]
private static void BeginSConnect(SocketAsyncResult sockares)
{
}
/// <summary>Ends a pending asynchronous connection request.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information and any user defined data for this asynchronous operation.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginConnect(System.Net.EndPoint,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndConnect(System.IAsyncResult)" /> was previously called for the asynchronous connection.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013A8 RID: 5032 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A8")]
[Address(RVA = "0x2629690", Offset = "0x2628490", VA = "0x182629690")]
public void EndConnect(IAsyncResult asyncResult)
{
}
// Token: 0x060013A9 RID: 5033 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013A9")]
[Address(RVA = "0x26287C0", Offset = "0x26275C0", VA = "0x1826287C0")]
private static void Connect_internal(SafeSocketHandle safeHandle, SocketAddress sa, out int error, bool blocking)
{
}
// Token: 0x060013AA RID: 5034 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013AA")]
[Address(RVA = "0x26287B0", Offset = "0x26275B0", VA = "0x1826287B0")]
private static void Connect_internal(IntPtr sock, SocketAddress sa, out int error, bool blocking)
{
}
/// <summary>Closes the socket connection and allows reuse of the socket.</summary>
/// <param name="reuseSocket">
/// <see langword="true" /> if this socket can be reused after the current connection is closed; otherwise, <see langword="false" />.</param>
/// <exception cref="T:System.PlatformNotSupportedException">This method requires Windows 2000 or earlier, or the exception will be thrown.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
// Token: 0x060013AB RID: 5035 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013AB")]
[Address(RVA = "0x26291E0", Offset = "0x2627FE0", VA = "0x1826291E0")]
public void Disconnect(bool reuseSocket)
{
}
/// <summary>Ends a pending asynchronous disconnect request.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> object that stores state information and any user-defined data for this asynchronous operation.</param>
/// <exception cref="T:System.NotSupportedException">The operating system is Windows 2000 or earlier, and this method requires Windows XP.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginDisconnect(System.Boolean,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndDisconnect(System.IAsyncResult)" /> was previously called for the asynchronous connection.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.Net.WebException">The disconnect request has timed out.</exception>
// Token: 0x060013AC RID: 5036 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013AC")]
[Address(RVA = "0x2629740", Offset = "0x2628540", VA = "0x182629740")]
public void EndDisconnect(IAsyncResult asyncResult)
{
}
// Token: 0x060013AD RID: 5037 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013AD")]
[Address(RVA = "0x26290D0", Offset = "0x2627ED0", VA = "0x1826290D0")]
private static void Disconnect_internal(SafeSocketHandle safeHandle, bool reuse, out int error)
{
}
// Token: 0x060013AE RID: 5038 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013AE")]
[Address(RVA = "0x26291D0", Offset = "0x2627FD0", VA = "0x1826291D0")]
private static void Disconnect_internal(IntPtr sock, bool reuse, out int error)
{
}
/// <summary>Receives data from a bound <see cref="T:System.Net.Sockets.Socket" /> into a receive buffer, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for the received data.</param>
/// <param name="offset">The position in the <paramref name="buffer" /> parameter to store the received data.</param>
/// <param name="size">The number of bytes to receive.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">
/// <paramref name="socketFlags" /> is not a valid combination of values.
/// -or-
/// The <see cref="P:System.Net.Sockets.Socket.LocalEndPoint" /> property is not set.
/// -or-
/// An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
// Token: 0x060013AF RID: 5039 RVA: 0x00008F88 File Offset: 0x00007188
[Token(Token = "0x60013AF")]
[Address(RVA = "0x262BC60", Offset = "0x262AA60", VA = "0x18262BC60")]
public int Receive(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode)
{
return 0;
}
/// <summary>Receives data from a bound <see cref="T:System.Net.Sockets.Socket" /> into the list of receive buffers, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffers">A list of <see cref="T:System.ArraySegment`1" />s of type <see cref="T:System.Byte" /> that contains the received data.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffers" /> is <see langword="null" />.
/// -or-
/// <paramref name="buffers" />.Count is zero.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013B0 RID: 5040 RVA: 0x00008FA0 File Offset: 0x000071A0
[Token(Token = "0x60013B0")]
[Address(RVA = "0x262B850", Offset = "0x262A650", VA = "0x18262B850")]
[CLSCompliant(false)]
public int Receive(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, out SocketError errorCode)
{
return 0;
}
/// <summary>Begins to asynchronously receive data from a connected <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the storage location for the received data.</param>
/// <param name="offset">The location in <paramref name="buffer" /> to store the received data.</param>
/// <param name="size">The number of bytes to receive.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <param name="callback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the receive operation. This object is passed to the <see cref="M:System.Net.Sockets.Socket.EndReceive(System.IAsyncResult)" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous read.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">
/// <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
// Token: 0x060013B1 RID: 5041 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013B1")]
[Address(RVA = "0x2627470", Offset = "0x2626270", VA = "0x182627470")]
public IAsyncResult BeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback callback, object state)
{
return null;
}
/// <summary>Ends a pending asynchronous read.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information and any user defined data for this asynchronous operation.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>The number of bytes received.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginReceive(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndReceive(System.IAsyncResult)" /> was previously called for the asynchronous read.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013B2 RID: 5042 RVA: 0x00008FB8 File Offset: 0x000071B8
[Token(Token = "0x60013B2")]
[Address(RVA = "0x26298F0", Offset = "0x26286F0", VA = "0x1826298F0")]
public int EndReceive(IAsyncResult asyncResult, out SocketError errorCode)
{
return 0;
}
// Token: 0x060013B3 RID: 5043 RVA: 0x00008FD0 File Offset: 0x000071D0
[Token(Token = "0x60013B3")]
[Address(RVA = "0x262B630", Offset = "0x262A430", VA = "0x18262B630")]
private unsafe static int Receive_internal(SafeSocketHandle safeHandle, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013B4 RID: 5044 RVA: 0x00008FE8 File Offset: 0x000071E8
[Token(Token = "0x60013B4")]
[Address(RVA = "0x262B750", Offset = "0x262A550", VA = "0x18262B750")]
private unsafe static int Receive_internal(IntPtr sock, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013B5 RID: 5045 RVA: 0x00009000 File Offset: 0x00007200
[Token(Token = "0x60013B5")]
[Address(RVA = "0x262B510", Offset = "0x262A310", VA = "0x18262B510")]
private unsafe static int Receive_internal(SafeSocketHandle safeHandle, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013B6 RID: 5046 RVA: 0x00009018 File Offset: 0x00007218
[Token(Token = "0x60013B6")]
[Address(RVA = "0x262B760", Offset = "0x262A560", VA = "0x18262B760")]
private unsafe static int Receive_internal(IntPtr sock, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013B7 RID: 5047 RVA: 0x00009030 File Offset: 0x00007230
[Token(Token = "0x60013B7")]
[Address(RVA = "0x262B380", Offset = "0x262A180", VA = "0x18262B380")]
internal int ReceiveFrom(byte[] buffer, int offset, int size, SocketFlags socketFlags, ref EndPoint remoteEP, out SocketError errorCode)
{
return 0;
}
/// <summary>Ends a pending asynchronous read from a specific endpoint.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information and any user defined data for this asynchronous operation.</param>
/// <param name="endPoint">The source <see cref="T:System.Net.EndPoint" />.</param>
/// <returns>If successful, the number of bytes received. If unsuccessful, returns 0.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginReceiveFrom(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint@,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndReceiveFrom(System.IAsyncResult,System.Net.EndPoint@)" /> was previously called for the asynchronous read.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013B8 RID: 5048 RVA: 0x00009048 File Offset: 0x00007248
[Token(Token = "0x60013B8")]
[Address(RVA = "0x26297F0", Offset = "0x26285F0", VA = "0x1826297F0")]
public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
{
return 0;
}
// Token: 0x060013B9 RID: 5049 RVA: 0x00009060 File Offset: 0x00007260
[Token(Token = "0x60013B9")]
[Address(RVA = "0x262B250", Offset = "0x262A050", VA = "0x18262B250")]
private unsafe static int ReceiveFrom_internal(SafeSocketHandle safeHandle, byte* buffer, int count, SocketFlags flags, ref SocketAddress sockaddr, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013BA RID: 5050 RVA: 0x00009078 File Offset: 0x00007278
[Token(Token = "0x60013BA")]
[Address(RVA = "0x262B240", Offset = "0x262A040", VA = "0x18262B240")]
private unsafe static int ReceiveFrom_internal(IntPtr sock, byte* buffer, int count, SocketFlags flags, ref SocketAddress sockaddr, out int error, bool blocking)
{
return 0;
}
/// <summary>Sends the specified number of bytes of data to a connected <see cref="T:System.Net.Sockets.Socket" />, starting at the specified offset, and using the specified <see cref="T:System.Net.Sockets.SocketFlags" /></summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to be sent.</param>
/// <param name="offset">The position in the data buffer at which to begin sending data.</param>
/// <param name="size">The number of bytes to send.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>The number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is greater than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">
/// <paramref name="socketFlags" /> is not a valid combination of values.
/// -or-
/// An operating system error occurs while accessing the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013BB RID: 5051 RVA: 0x00009090 File Offset: 0x00007290
[Token(Token = "0x60013BB")]
[Address(RVA = "0x262C3B0", Offset = "0x262B1B0", VA = "0x18262C3B0")]
public int Send(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode)
{
return 0;
}
/// <summary>Sends the set of buffers in the list to a connected <see cref="T:System.Net.Sockets.Socket" />, using the specified <see cref="T:System.Net.Sockets.SocketFlags" />.</summary>
/// <param name="buffers">A list of <see cref="T:System.ArraySegment`1" />s of type <see cref="T:System.Byte" /> that contains the data to be sent.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>The number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffers" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="buffers" /> is empty.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013BC RID: 5052 RVA: 0x000090A8 File Offset: 0x000072A8
[Token(Token = "0x60013BC")]
[Address(RVA = "0x262C790", Offset = "0x262B590", VA = "0x18262C790")]
[CLSCompliant(false)]
public int Send(IList<ArraySegment<byte>> buffers, SocketFlags socketFlags, out SocketError errorCode)
{
return 0;
}
/// <summary>Sends data asynchronously to a connected <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to send.</param>
/// <param name="offset">The zero-based position in the <paramref name="buffer" /> parameter at which to begin sending data.</param>
/// <param name="size">The number of bytes to send.</param>
/// <param name="socketFlags">A bitwise combination of the <see cref="T:System.Net.Sockets.SocketFlags" /> values.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate.</param>
/// <param name="state">An object that contains state information for this request.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous send.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket. See remarks section below.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> is less than 0.
/// -or-
/// <paramref name="offset" /> is less than the length of <paramref name="buffer" />.
/// -or-
/// <paramref name="size" /> is less than 0.
/// -or-
/// <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013BD RID: 5053 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013BD")]
[Address(RVA = "0x26280A0", Offset = "0x2626EA0", VA = "0x1826280A0")]
public IAsyncResult BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback callback, object state)
{
return null;
}
// Token: 0x060013BE RID: 5054 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013BE")]
[Address(RVA = "0x2627D60", Offset = "0x2626B60", VA = "0x182627D60")]
private static void BeginSendCallback(SocketAsyncResult sockares, int sent_so_far)
{
}
/// <summary>Ends a pending asynchronous send.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information for this asynchronous operation.</param>
/// <param name="errorCode">A <see cref="T:System.Net.Sockets.SocketError" /> object that stores the socket error.</param>
/// <returns>If successful, the number of bytes sent to the <see cref="T:System.Net.Sockets.Socket" />; otherwise, an invalid <see cref="T:System.Net.Sockets.Socket" /> error.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndSend(System.IAsyncResult)" /> was previously called for the asynchronous send.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013BF RID: 5055 RVA: 0x000090C0 File Offset: 0x000072C0
[Token(Token = "0x60013BF")]
[Address(RVA = "0x2629BA0", Offset = "0x26289A0", VA = "0x182629BA0")]
public int EndSend(IAsyncResult asyncResult, out SocketError errorCode)
{
return 0;
}
// Token: 0x060013C0 RID: 5056 RVA: 0x000090D8 File Offset: 0x000072D8
[Token(Token = "0x60013C0")]
[Address(RVA = "0x262C1D0", Offset = "0x262AFD0", VA = "0x18262C1D0")]
private unsafe static int Send_internal(SafeSocketHandle safeHandle, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013C1 RID: 5057 RVA: 0x000090F0 File Offset: 0x000072F0
[Token(Token = "0x60013C1")]
[Address(RVA = "0x262C300", Offset = "0x262B100", VA = "0x18262C300")]
private unsafe static int Send_internal(IntPtr sock, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013C2 RID: 5058 RVA: 0x00009108 File Offset: 0x00007308
[Token(Token = "0x60013C2")]
[Address(RVA = "0x262C0B0", Offset = "0x262AEB0", VA = "0x18262C0B0")]
private unsafe static int Send_internal(SafeSocketHandle safeHandle, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
// Token: 0x060013C3 RID: 5059 RVA: 0x00009120 File Offset: 0x00007320
[Token(Token = "0x60013C3")]
[Address(RVA = "0x262C2F0", Offset = "0x262B0F0", VA = "0x18262C2F0")]
private unsafe static int Send_internal(IntPtr sock, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
{
return 0;
}
/// <summary>Ends a pending asynchronous send to a specific location.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that stores state information and any user defined data for this asynchronous operation.</param>
/// <returns>If successful, the number of bytes sent; otherwise, an invalid <see cref="T:System.Net.Sockets.Socket" /> error.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="asyncResult" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="asyncResult" /> was not returned by a call to the <see cref="M:System.Net.Sockets.Socket.BeginSendTo(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.Net.EndPoint,System.AsyncCallback,System.Object)" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">
/// <see cref="M:System.Net.Sockets.Socket.EndSendTo(System.IAsyncResult)" /> was previously called for the asynchronous send.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013C4 RID: 5060 RVA: 0x00009138 File Offset: 0x00007338
[Token(Token = "0x60013C4")]
[Address(RVA = "0x2629AF0", Offset = "0x26288F0", VA = "0x182629AF0")]
public int EndSendTo(IAsyncResult asyncResult)
{
return 0;
}
/// <summary>Returns the value of a specified <see cref="T:System.Net.Sockets.Socket" /> option, represented as an object.</summary>
/// <param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
/// <param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
/// <returns>An object that represents the value of the option. When the <paramref name="optionName" /> parameter is set to <see cref="F:System.Net.Sockets.SocketOptionName.Linger" /> the return value is an instance of the <see cref="T:System.Net.Sockets.LingerOption" /> class. When <paramref name="optionName" /> is set to <see cref="F:System.Net.Sockets.SocketOptionName.AddMembership" /> or <see cref="F:System.Net.Sockets.SocketOptionName.DropMembership" />, the return value is an instance of the <see cref="T:System.Net.Sockets.MulticastOption" /> class. When <paramref name="optionName" /> is any other value, the return value is an integer.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.
/// -or-
/// <paramref name="optionName" /> was set to the unsupported value <see cref="F:System.Net.Sockets.SocketOptionName.MaxConnections" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013C5 RID: 5061 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013C5")]
[Address(RVA = "0x2629E20", Offset = "0x2628C20", VA = "0x182629E20")]
public object GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName)
{
return null;
}
// Token: 0x060013C6 RID: 5062 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013C6")]
[Address(RVA = "0x262A030", Offset = "0x2628E30", VA = "0x18262A030")]
private static void GetSocketOption_obj_internal(SafeSocketHandle safeHandle, SocketOptionLevel level, SocketOptionName name, out object obj_val, out int error)
{
}
// Token: 0x060013C7 RID: 5063 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013C7")]
[Address(RVA = "0x262A020", Offset = "0x2628E20", VA = "0x18262A020")]
private static void GetSocketOption_obj_internal(IntPtr socket, SocketOptionLevel level, SocketOptionName name, out object obj_val, out int error)
{
}
/// <summary>Sets the specified <see cref="T:System.Net.Sockets.Socket" /> option to the specified value, represented as an object.</summary>
/// <param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
/// <param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
/// <param name="optionValue">A <see cref="T:System.Net.Sockets.LingerOption" /> or <see cref="T:System.Net.Sockets.MulticastOption" /> that contains the value of the option.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="optionValue" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013C8 RID: 5064 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013C8")]
[Address(RVA = "0x262CE20", Offset = "0x262BC20", VA = "0x18262CE20")]
public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, object optionValue)
{
}
/// <summary>Sets the specified <see cref="T:System.Net.Sockets.Socket" /> option to the specified <see cref="T:System.Boolean" /> value.</summary>
/// <param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
/// <param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
/// <param name="optionValue">The value of the option, represented as a <see cref="T:System.Boolean" />.</param>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> object has been closed.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
// Token: 0x060013C9 RID: 5065 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013C9")]
[Address(RVA = "0x262D0F0", Offset = "0x262BEF0", VA = "0x18262D0F0")]
public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, bool optionValue)
{
}
/// <summary>Sets the specified <see cref="T:System.Net.Sockets.Socket" /> option to the specified integer value.</summary>
/// <param name="optionLevel">One of the <see cref="T:System.Net.Sockets.SocketOptionLevel" /> values.</param>
/// <param name="optionName">One of the <see cref="T:System.Net.Sockets.SocketOptionName" /> values.</param>
/// <param name="optionValue">A value of the option.</param>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x060013CA RID: 5066 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013CA")]
[Address(RVA = "0x262D110", Offset = "0x262BF10", VA = "0x18262D110")]
public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue)
{
}
// Token: 0x060013CB RID: 5067 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013CB")]
[Address(RVA = "0x262CCE0", Offset = "0x262BAE0", VA = "0x18262CCE0")]
private static void SetSocketOption_internal(SafeSocketHandle safeHandle, SocketOptionLevel level, SocketOptionName name, object obj_val, byte[] byte_val, int int_val, out int error)
{
}
// Token: 0x060013CC RID: 5068 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013CC")]
[Address(RVA = "0x262CE10", Offset = "0x262BC10", VA = "0x18262CE10")]
private static void SetSocketOption_internal(IntPtr socket, SocketOptionLevel level, SocketOptionName name, object obj_val, byte[] byte_val, int int_val, out int error)
{
}
/// <summary>Sets low-level operating modes for the <see cref="T:System.Net.Sockets.Socket" /> using numerical control codes.</summary>
/// <param name="ioControlCode">An <see cref="T:System.Int32" /> value that specifies the control code of the operation to perform.</param>
/// <param name="optionInValue">A <see cref="T:System.Byte" /> array that contains the input data required by the operation.</param>
/// <param name="optionOutValue">A <see cref="T:System.Byte" /> array that contains the output data returned by the operation.</param>
/// <returns>The number of bytes in the <paramref name="optionOutValue" /> parameter.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.InvalidOperationException">An attempt was made to change the blocking mode without using the <see cref="P:System.Net.Sockets.Socket.Blocking" /> property.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller in the call stack does not have the required permissions.</exception>
// Token: 0x060013CD RID: 5069 RVA: 0x00009150 File Offset: 0x00007350
[Token(Token = "0x60013CD")]
[Address(RVA = "0x262A400", Offset = "0x2629200", VA = "0x18262A400")]
public int IOControl(int ioControlCode, byte[] optionInValue, byte[] optionOutValue)
{
return 0;
}
// Token: 0x060013CE RID: 5070 RVA: 0x00009168 File Offset: 0x00007368
[Token(Token = "0x60013CE")]
[Address(RVA = "0x262A150", Offset = "0x2628F50", VA = "0x18262A150")]
private static int IOControl_internal(SafeSocketHandle safeHandle, int ioctl_code, byte[] input, byte[] output, out int error)
{
return 0;
}
// Token: 0x060013CF RID: 5071 RVA: 0x00009180 File Offset: 0x00007380
[Token(Token = "0x60013CF")]
[Address(RVA = "0x262A280", Offset = "0x2629080", VA = "0x18262A280")]
private static int IOControl_internal(IntPtr sock, int ioctl_code, byte[] input, byte[] output, out int error)
{
return 0;
}
/// <summary>Closes the <see cref="T:System.Net.Sockets.Socket" /> connection and releases all associated resources.</summary>
// Token: 0x060013D0 RID: 5072 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D0")]
[Address(RVA = "0x2628740", Offset = "0x2627540", VA = "0x182628740")]
public void Close()
{
}
/// <summary>Closes the <see cref="T:System.Net.Sockets.Socket" /> connection and releases all associated resources with a specified timeout to allow queued data to be sent.</summary>
/// <param name="timeout">Wait up to <paramref name="timeout" /> seconds to send any remaining data, then close the socket.</param>
// Token: 0x060013D1 RID: 5073 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D1")]
[Address(RVA = "0x26286D0", Offset = "0x26274D0", VA = "0x1826286D0")]
public void Close(int timeout)
{
}
// Token: 0x060013D2 RID: 5074 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D2")]
[Address(RVA = "0x26286C0", Offset = "0x26274C0", VA = "0x1826286C0")]
internal static void Close_internal(IntPtr socket, out int error)
{
}
// Token: 0x060013D3 RID: 5075 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D3")]
[Address(RVA = "0x262D230", Offset = "0x262C030", VA = "0x18262D230")]
private static void Shutdown_internal(SafeSocketHandle safeHandle, SocketShutdown how, out int error)
{
}
// Token: 0x060013D4 RID: 5076 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D4")]
[Address(RVA = "0x262D330", Offset = "0x262C130", VA = "0x18262D330")]
internal static void Shutdown_internal(IntPtr socket, SocketShutdown how, out int error)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.Socket" />, and optionally disposes of the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to releases only unmanaged resources.</param>
// Token: 0x060013D5 RID: 5077 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D5")]
[Address(RVA = "0x26292D0", Offset = "0x26280D0", VA = "0x1826292D0", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
// Token: 0x060013D6 RID: 5078 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D6")]
[Address(RVA = "0x262A9E0", Offset = "0x26297E0", VA = "0x18262A9E0")]
private void Linger(IntPtr handle)
{
}
// Token: 0x060013D7 RID: 5079 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D7")]
[Address(RVA = "0x262D670", Offset = "0x262C470", VA = "0x18262D670")]
private void ThrowIfDisposedAndClosed()
{
}
// Token: 0x060013D8 RID: 5080 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D8")]
[Address(RVA = "0x262D4C0", Offset = "0x262C2C0", VA = "0x18262D4C0")]
private void ThrowIfBufferNull(byte[] buffer)
{
}
// Token: 0x060013D9 RID: 5081 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013D9")]
[Address(RVA = "0x262D520", Offset = "0x262C320", VA = "0x18262D520")]
private void ThrowIfBufferOutOfRange(byte[] buffer, int offset, int size)
{
}
// Token: 0x060013DA RID: 5082 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013DA")]
[Address(RVA = "0x262D710", Offset = "0x262C510", VA = "0x18262D710")]
private void ThrowIfUdp()
{
}
// Token: 0x060013DB RID: 5083 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013DB")]
[Address(RVA = "0x262D790", Offset = "0x262C590", VA = "0x18262D790")]
private SocketAsyncResult ValidateEndIAsyncResult(IAsyncResult ares, string methodName, string argName)
{
return null;
}
// Token: 0x060013DC RID: 5084 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013DC")]
[Address(RVA = "0x262B120", Offset = "0x2629F20", VA = "0x18262B120")]
private void QueueIOSelectorJob(SemaphoreSlim sem, IntPtr handle, IOSelectorJob job)
{
}
// Token: 0x060013DD RID: 5085 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60013DD")]
[Address(RVA = "0x262BED0", Offset = "0x262ACD0", VA = "0x18262BED0")]
private IPEndPoint RemapIPEndPoint(IPEndPoint input)
{
return null;
}
// Token: 0x060013DE RID: 5086 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013DE")]
[Address(RVA = "0x262E180", Offset = "0x262CF80", VA = "0x18262E180")]
internal static void cancel_blocking_socket_operation(Thread thread)
{
}
// Token: 0x1700040C RID: 1036
// (get) Token: 0x060013DF RID: 5087 RVA: 0x00009198 File Offset: 0x00007398
[Token(Token = "0x1700040C")]
internal static int FamilyHint
{
[Token(Token = "0x60013DF")]
[Address(RVA = "0x262E390", Offset = "0x262D190", VA = "0x18262E390")]
get
{
return 0;
}
}
// Token: 0x060013E0 RID: 5088 RVA: 0x000091B0 File Offset: 0x000073B0
[Token(Token = "0x60013E0")]
[Address(RVA = "0x2379AE0", Offset = "0x23788E0", VA = "0x182379AE0")]
private static bool IsProtocolSupported_internal(NetworkInterfaceComponent networkInterface)
{
return default(bool);
}
// Token: 0x060013E1 RID: 5089 RVA: 0x000091C8 File Offset: 0x000073C8
[Token(Token = "0x60013E1")]
[Address(RVA = "0x262A990", Offset = "0x2629790", VA = "0x18262A990")]
private static bool IsProtocolSupported(NetworkInterfaceComponent networkInterface)
{
return default(bool);
}
// Token: 0x04000BE7 RID: 3047
[Token(Token = "0x4000BE7")]
private static object s_InternalSyncObject;
// Token: 0x04000BE8 RID: 3048
[Token(Token = "0x4000BE8")]
internal static bool s_SupportsIPv4;
// Token: 0x04000BE9 RID: 3049
[Token(Token = "0x4000BE9")]
internal static bool s_SupportsIPv6;
// Token: 0x04000BEA RID: 3050
[Token(Token = "0x4000BEA")]
internal static bool s_OSSupportsIPv6;
// Token: 0x04000BEB RID: 3051
[Token(Token = "0x4000BEB")]
internal static bool s_Initialized;
// Token: 0x04000BEC RID: 3052
[Token(Token = "0x4000BEC")]
private static bool s_LoggingEnabled;
// Token: 0x04000BED RID: 3053
[Token(Token = "0x4000BED")]
internal static bool s_PerfCountersEnabled;
// Token: 0x04000BEE RID: 3054
[Token(Token = "0x4000BEE")]
internal const int DefaultCloseTimeout = -1;
// Token: 0x04000BEF RID: 3055
[Token(Token = "0x4000BEF")]
private const int SOCKET_CLOSED_CODE = 10004;
// Token: 0x04000BF0 RID: 3056
[Token(Token = "0x4000BF0")]
private const string TIMEOUT_EXCEPTION_MSG = "A connection attempt failed because the connected party did not properly respondafter a period of time, or established connection failed because connected host has failed to respond";
// Token: 0x04000BF1 RID: 3057
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000BF1")]
private bool is_closed;
// Token: 0x04000BF2 RID: 3058
[FieldOffset(Offset = "0x11")]
[Token(Token = "0x4000BF2")]
private bool is_listening;
// Token: 0x04000BF3 RID: 3059
[FieldOffset(Offset = "0x12")]
[Token(Token = "0x4000BF3")]
private bool useOverlappedIO;
// Token: 0x04000BF4 RID: 3060
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4000BF4")]
private int linger_timeout;
// Token: 0x04000BF5 RID: 3061
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000BF5")]
private AddressFamily addressFamily;
// Token: 0x04000BF6 RID: 3062
[FieldOffset(Offset = "0x1C")]
[Token(Token = "0x4000BF6")]
private SocketType socketType;
// Token: 0x04000BF7 RID: 3063
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000BF7")]
private ProtocolType protocolType;
// Token: 0x04000BF8 RID: 3064
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000BF8")]
internal SafeSocketHandle m_Handle;
// Token: 0x04000BF9 RID: 3065
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000BF9")]
internal EndPoint seed_endpoint;
// Token: 0x04000BFA RID: 3066
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000BFA")]
internal SemaphoreSlim ReadSem;
// Token: 0x04000BFB RID: 3067
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000BFB")]
internal SemaphoreSlim WriteSem;
// Token: 0x04000BFC RID: 3068
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000BFC")]
internal bool is_blocking;
// Token: 0x04000BFD RID: 3069
[FieldOffset(Offset = "0x49")]
[Token(Token = "0x4000BFD")]
internal bool is_bound;
// Token: 0x04000BFE RID: 3070
[FieldOffset(Offset = "0x4A")]
[Token(Token = "0x4000BFE")]
internal bool is_connected;
// Token: 0x04000BFF RID: 3071
[FieldOffset(Offset = "0x4C")]
[Token(Token = "0x4000BFF")]
private int m_IntCleanedUp;
// Token: 0x04000C00 RID: 3072
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000C00")]
internal bool connect_in_progress;
// Token: 0x04000C01 RID: 3073
[Token(Token = "0x4000C01")]
private static AsyncCallback AcceptAsyncCallback;
// Token: 0x04000C02 RID: 3074
[Token(Token = "0x4000C02")]
private static IOAsyncCallback BeginAcceptCallback;
// Token: 0x04000C03 RID: 3075
[Token(Token = "0x4000C03")]
private static IOAsyncCallback BeginAcceptReceiveCallback;
// Token: 0x04000C04 RID: 3076
[Token(Token = "0x4000C04")]
private static AsyncCallback ConnectAsyncCallback;
// Token: 0x04000C05 RID: 3077
[Token(Token = "0x4000C05")]
private static IOAsyncCallback BeginConnectCallback;
// Token: 0x04000C06 RID: 3078
[Token(Token = "0x4000C06")]
private static AsyncCallback DisconnectAsyncCallback;
// Token: 0x04000C07 RID: 3079
[Token(Token = "0x4000C07")]
private static IOAsyncCallback BeginDisconnectCallback;
// Token: 0x04000C08 RID: 3080
[Token(Token = "0x4000C08")]
private static AsyncCallback ReceiveAsyncCallback;
// Token: 0x04000C09 RID: 3081
[Token(Token = "0x4000C09")]
private static IOAsyncCallback BeginReceiveCallback;
// Token: 0x04000C0A RID: 3082
[Token(Token = "0x4000C0A")]
private static IOAsyncCallback BeginReceiveGenericCallback;
// Token: 0x04000C0B RID: 3083
[Token(Token = "0x4000C0B")]
private static AsyncCallback ReceiveFromAsyncCallback;
// Token: 0x04000C0C RID: 3084
[Token(Token = "0x4000C0C")]
private static IOAsyncCallback BeginReceiveFromCallback;
// Token: 0x04000C0D RID: 3085
[Token(Token = "0x4000C0D")]
private static AsyncCallback SendAsyncCallback;
// Token: 0x04000C0E RID: 3086
[Token(Token = "0x4000C0E")]
private static IOAsyncCallback BeginSendGenericCallback;
// Token: 0x04000C0F RID: 3087
[Token(Token = "0x4000C0F")]
private static AsyncCallback SendToAsyncCallback;
// Token: 0x020002E0 RID: 736
[Token(Token = "0x20002E0")]
private struct WSABUF
{
// Token: 0x04000C10 RID: 3088
[FieldOffset(Offset = "0x0")]
[Token(Token = "0x4000C10")]
public int len;
// Token: 0x04000C11 RID: 3089
[FieldOffset(Offset = "0x8")]
[Token(Token = "0x4000C11")]
public IntPtr buf;
}
}
}
+122
View File
@@ -0,0 +1,122 @@
using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Represents an asynchronous socket operation.</summary>
// Token: 0x020002ED RID: 749
[Token(Token = "0x20002ED")]
public class SocketAsyncEventArgs : EventArgs, IDisposable
{
/// <summary>Gets or sets the socket to use or the socket created for accepting a connection with an asynchronous socket method.</summary>
/// <returns>The <see cref="T:System.Net.Sockets.Socket" /> to use or the socket created for accepting a connection with an asynchronous socket method.</returns>
// Token: 0x17000410 RID: 1040
// (get) Token: 0x06001415 RID: 5141 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x06001416 RID: 5142 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000410")]
public Socket AcceptSocket
{
[Token(Token = "0x6001415")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
[CompilerGenerated]
get
{
return null;
}
[Token(Token = "0x6001416")]
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
[CompilerGenerated]
set
{
}
}
/// <summary>Gets the number of bytes transferred in the socket operation.</summary>
/// <returns>An <see cref="T:System.Int32" /> that contains the number of bytes transferred in the socket operation.</returns>
// Token: 0x17000411 RID: 1041
// (set) Token: 0x06001417 RID: 5143 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000411")]
internal int BytesTransferred
{
[Token(Token = "0x6001417")]
[Address(RVA = "0x6CBD90", Offset = "0x6CAB90", VA = "0x1806CBD90")]
[CompilerGenerated]
set
{
}
}
/// <summary>Gets or sets the result of the asynchronous socket operation.</summary>
/// <returns>A <see cref="T:System.Net.Sockets.SocketError" /> that represents the result of the asynchronous socket operation.</returns>
// Token: 0x17000412 RID: 1042
// (set) Token: 0x06001418 RID: 5144 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x17000412")]
public SocketError SocketError
{
[Token(Token = "0x6001418")]
[Address(RVA = "0x643C00", Offset = "0x642A00", VA = "0x180643C00")]
[CompilerGenerated]
set
{
}
}
// Token: 0x06001419 RID: 5145 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001419")]
[Address(RVA = "0x2625B10", Offset = "0x2624910", VA = "0x182625B10")]
private void Dispose(bool disposing)
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> instance and optionally disposes of the managed resources.</summary>
// Token: 0x0600141A RID: 5146 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600141A")]
[Address(RVA = "0x2625B20", Offset = "0x2624920", VA = "0x182625B20", Slot = "4")]
public void Dispose()
{
}
// Token: 0x0600141B RID: 5147 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600141B")]
[Address(RVA = "0x2625AF0", Offset = "0x26248F0", VA = "0x182625AF0")]
internal void Complete()
{
}
/// <summary>Represents a method that is called when an asynchronous operation completes.</summary>
/// <param name="e">The event that is signaled.</param>
// Token: 0x0600141C RID: 5148 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600141C")]
[Address(RVA = "0x2625B80", Offset = "0x2624980", VA = "0x182625B80", Slot = "5")]
protected virtual void OnCompleted(SocketAsyncEventArgs e)
{
}
// Token: 0x04000CA2 RID: 3234
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000CA2")]
private bool disposed;
// Token: 0x04000CA3 RID: 3235
[FieldOffset(Offset = "0x14")]
[Token(Token = "0x4000CA3")]
internal int in_progress;
// Token: 0x04000CA4 RID: 3236
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000CA4")]
internal EndPoint remote_ep;
// Token: 0x04000CA5 RID: 3237
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000CA5")]
internal Socket current_socket;
// Token: 0x04000CA9 RID: 3241
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000CA9")]
[CompilerGenerated]
private EventHandler<SocketAsyncEventArgs> Completed;
}
}
+199
View File
@@ -0,0 +1,199 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
// Token: 0x020002EE RID: 750
[Token(Token = "0x20002EE")]
[StructLayout(0)]
internal sealed class SocketAsyncResult : IOAsyncResult
{
// Token: 0x17000413 RID: 1043
// (get) Token: 0x0600141D RID: 5149 RVA: 0x00009210 File Offset: 0x00007410
[Token(Token = "0x17000413")]
public IntPtr Handle
{
[Token(Token = "0x600141D")]
[Address(RVA = "0x2625FE0", Offset = "0x2624DE0", VA = "0x182625FE0")]
get
{
return 0;
}
}
// Token: 0x0600141E RID: 5150 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600141E")]
[Address(RVA = "0x2625F10", Offset = "0x2624D10", VA = "0x182625F10")]
public SocketAsyncResult(Socket socket, AsyncCallback callback, object state, SocketOperation operation)
{
}
// Token: 0x17000414 RID: 1044
// (get) Token: 0x0600141F RID: 5151 RVA: 0x00009228 File Offset: 0x00007428
[Token(Token = "0x17000414")]
public SocketError ErrorCode
{
[Token(Token = "0x600141F")]
[Address(RVA = "0x2625F50", Offset = "0x2624D50", VA = "0x182625F50")]
get
{
return SocketError.Success;
}
}
// Token: 0x06001420 RID: 5152 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001420")]
[Address(RVA = "0x2625BD0", Offset = "0x26249D0", VA = "0x182625BD0")]
public void CheckIfThrowDelayedException()
{
}
// Token: 0x06001421 RID: 5153 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001421")]
[Address(RVA = "0x2625CA0", Offset = "0x2624AA0", VA = "0x182625CA0", Slot = "8")]
internal override void CompleteDisposed()
{
}
// Token: 0x06001422 RID: 5154 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001422")]
[Address(RVA = "0x2625CF0", Offset = "0x2624AF0", VA = "0x182625CF0")]
public void Complete()
{
}
// Token: 0x06001423 RID: 5155 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001423")]
[Address(RVA = "0x2625CE0", Offset = "0x2624AE0", VA = "0x182625CE0")]
public void Complete(bool synch)
{
}
// Token: 0x06001424 RID: 5156 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001424")]
[Address(RVA = "0x2625F00", Offset = "0x2624D00", VA = "0x182625F00")]
public void Complete(int total)
{
}
// Token: 0x06001425 RID: 5157 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001425")]
[Address(RVA = "0x2625CB0", Offset = "0x2624AB0", VA = "0x182625CB0")]
public void Complete(Exception e, bool synch)
{
}
// Token: 0x06001426 RID: 5158 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001426")]
[Address(RVA = "0x2625CC0", Offset = "0x2624AC0", VA = "0x182625CC0")]
public void Complete(Exception e)
{
}
// Token: 0x06001427 RID: 5159 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001427")]
[Address(RVA = "0x2625CD0", Offset = "0x2624AD0", VA = "0x182625CD0")]
public void Complete(Socket s)
{
}
// Token: 0x06001428 RID: 5160 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001428")]
[Address(RVA = "0x2625EE0", Offset = "0x2624CE0", VA = "0x182625EE0")]
public void Complete(Socket s, int total)
{
}
// Token: 0x04000CAA RID: 3242
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000CAA")]
public Socket socket;
// Token: 0x04000CAB RID: 3243
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4000CAB")]
public SocketOperation operation;
// Token: 0x04000CAC RID: 3244
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000CAC")]
private Exception DelayedException;
// Token: 0x04000CAD RID: 3245
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000CAD")]
public EndPoint EndPoint;
// Token: 0x04000CAE RID: 3246
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000CAE")]
public byte[] Buffer;
// Token: 0x04000CAF RID: 3247
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000CAF")]
public int Offset;
// Token: 0x04000CB0 RID: 3248
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4000CB0")]
public int Size;
// Token: 0x04000CB1 RID: 3249
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4000CB1")]
public SocketFlags SockFlags;
// Token: 0x04000CB2 RID: 3250
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4000CB2")]
public Socket AcceptSocket;
// Token: 0x04000CB3 RID: 3251
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x4000CB3")]
public IPAddress[] Addresses;
// Token: 0x04000CB4 RID: 3252
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x4000CB4")]
public int Port;
// Token: 0x04000CB5 RID: 3253
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
[Token(Token = "0x4000CB5")]
public IList<ArraySegment<byte>> Buffers;
// Token: 0x04000CB6 RID: 3254
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
[Token(Token = "0x4000CB6")]
public bool ReuseSocket;
// Token: 0x04000CB7 RID: 3255
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8C")]
[Token(Token = "0x4000CB7")]
public int CurrentAddress;
// Token: 0x04000CB8 RID: 3256
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
[Token(Token = "0x4000CB8")]
public Socket AcceptedSocket;
// Token: 0x04000CB9 RID: 3257
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
[Token(Token = "0x4000CB9")]
public int Total;
// Token: 0x04000CBA RID: 3258
[global::Cpp2IlInjected.FieldOffset(Offset = "0x9C")]
[Token(Token = "0x4000CBA")]
internal int error;
// Token: 0x04000CBB RID: 3259
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
[Token(Token = "0x4000CBB")]
public int EndCalled;
}
}
+200
View File
@@ -0,0 +1,200 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Defines error codes for the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
// Token: 0x020002E4 RID: 740
[Token(Token = "0x20002E4")]
public enum SocketError
{
/// <summary>The <see cref="T:System.Net.Sockets.Socket" /> operation succeeded.</summary>
// Token: 0x04000C19 RID: 3097
[Token(Token = "0x4000C19")]
Success,
/// <summary>An unspecified <see cref="T:System.Net.Sockets.Socket" /> error has occurred.</summary>
// Token: 0x04000C1A RID: 3098
[Token(Token = "0x4000C1A")]
SocketError = -1,
/// <summary>A blocking <see cref="T:System.Net.Sockets.Socket" /> call was canceled.</summary>
// Token: 0x04000C1B RID: 3099
[Token(Token = "0x4000C1B")]
Interrupted = 10004,
/// <summary>An attempt was made to access a <see cref="T:System.Net.Sockets.Socket" /> in a way that is forbidden by its access permissions.</summary>
// Token: 0x04000C1C RID: 3100
[Token(Token = "0x4000C1C")]
AccessDenied = 10013,
/// <summary>An invalid pointer address was detected by the underlying socket provider.</summary>
// Token: 0x04000C1D RID: 3101
[Token(Token = "0x4000C1D")]
Fault,
/// <summary>An invalid argument was supplied to a <see cref="T:System.Net.Sockets.Socket" /> member.</summary>
// Token: 0x04000C1E RID: 3102
[Token(Token = "0x4000C1E")]
InvalidArgument = 10022,
/// <summary>There are too many open sockets in the underlying socket provider.</summary>
// Token: 0x04000C1F RID: 3103
[Token(Token = "0x4000C1F")]
TooManyOpenSockets = 10024,
/// <summary>An operation on a nonblocking socket cannot be completed immediately.</summary>
// Token: 0x04000C20 RID: 3104
[Token(Token = "0x4000C20")]
WouldBlock = 10035,
/// <summary>A blocking operation is in progress.</summary>
// Token: 0x04000C21 RID: 3105
[Token(Token = "0x4000C21")]
InProgress,
/// <summary>The nonblocking <see cref="T:System.Net.Sockets.Socket" /> already has an operation in progress.</summary>
// Token: 0x04000C22 RID: 3106
[Token(Token = "0x4000C22")]
AlreadyInProgress,
/// <summary>A <see cref="T:System.Net.Sockets.Socket" /> operation was attempted on a non-socket.</summary>
// Token: 0x04000C23 RID: 3107
[Token(Token = "0x4000C23")]
NotSocket,
/// <summary>A required address was omitted from an operation on a <see cref="T:System.Net.Sockets.Socket" />.</summary>
// Token: 0x04000C24 RID: 3108
[Token(Token = "0x4000C24")]
DestinationAddressRequired,
/// <summary>The datagram is too long.</summary>
// Token: 0x04000C25 RID: 3109
[Token(Token = "0x4000C25")]
MessageSize,
/// <summary>The protocol type is incorrect for this <see cref="T:System.Net.Sockets.Socket" />.</summary>
// Token: 0x04000C26 RID: 3110
[Token(Token = "0x4000C26")]
ProtocolType,
/// <summary>An unknown, invalid, or unsupported option or level was used with a <see cref="T:System.Net.Sockets.Socket" />.</summary>
// Token: 0x04000C27 RID: 3111
[Token(Token = "0x4000C27")]
ProtocolOption,
/// <summary>The protocol is not implemented or has not been configured.</summary>
// Token: 0x04000C28 RID: 3112
[Token(Token = "0x4000C28")]
ProtocolNotSupported,
/// <summary>The support for the specified socket type does not exist in this address family.</summary>
// Token: 0x04000C29 RID: 3113
[Token(Token = "0x4000C29")]
SocketNotSupported,
/// <summary>The address family is not supported by the protocol family.</summary>
// Token: 0x04000C2A RID: 3114
[Token(Token = "0x4000C2A")]
OperationNotSupported,
/// <summary>The protocol family is not implemented or has not been configured.</summary>
// Token: 0x04000C2B RID: 3115
[Token(Token = "0x4000C2B")]
ProtocolFamilyNotSupported,
/// <summary>The address family specified is not supported. This error is returned if the IPv6 address family was specified and the IPv6 stack is not installed on the local machine. This error is returned if the IPv4 address family was specified and the IPv4 stack is not installed on the local machine.</summary>
// Token: 0x04000C2C RID: 3116
[Token(Token = "0x4000C2C")]
AddressFamilyNotSupported,
/// <summary>Only one use of an address is normally permitted.</summary>
// Token: 0x04000C2D RID: 3117
[Token(Token = "0x4000C2D")]
AddressAlreadyInUse,
/// <summary>The selected IP address is not valid in this context.</summary>
// Token: 0x04000C2E RID: 3118
[Token(Token = "0x4000C2E")]
AddressNotAvailable,
/// <summary>The network is not available.</summary>
// Token: 0x04000C2F RID: 3119
[Token(Token = "0x4000C2F")]
NetworkDown,
/// <summary>No route to the remote host exists.</summary>
// Token: 0x04000C30 RID: 3120
[Token(Token = "0x4000C30")]
NetworkUnreachable,
/// <summary>The application tried to set <see cref="F:System.Net.Sockets.SocketOptionName.KeepAlive" /> on a connection that has already timed out.</summary>
// Token: 0x04000C31 RID: 3121
[Token(Token = "0x4000C31")]
NetworkReset,
/// <summary>The connection was aborted by the .NET Framework or the underlying socket provider.</summary>
// Token: 0x04000C32 RID: 3122
[Token(Token = "0x4000C32")]
ConnectionAborted,
/// <summary>The connection was reset by the remote peer.</summary>
// Token: 0x04000C33 RID: 3123
[Token(Token = "0x4000C33")]
ConnectionReset,
/// <summary>No free buffer space is available for a <see cref="T:System.Net.Sockets.Socket" /> operation.</summary>
// Token: 0x04000C34 RID: 3124
[Token(Token = "0x4000C34")]
NoBufferSpaceAvailable,
/// <summary>The <see cref="T:System.Net.Sockets.Socket" /> is already connected.</summary>
// Token: 0x04000C35 RID: 3125
[Token(Token = "0x4000C35")]
IsConnected,
/// <summary>The application tried to send or receive data, and the <see cref="T:System.Net.Sockets.Socket" /> is not connected.</summary>
// Token: 0x04000C36 RID: 3126
[Token(Token = "0x4000C36")]
NotConnected,
/// <summary>A request to send or receive data was disallowed because the <see cref="T:System.Net.Sockets.Socket" /> has already been closed.</summary>
// Token: 0x04000C37 RID: 3127
[Token(Token = "0x4000C37")]
Shutdown,
/// <summary>The connection attempt timed out, or the connected host has failed to respond.</summary>
// Token: 0x04000C38 RID: 3128
[Token(Token = "0x4000C38")]
TimedOut = 10060,
/// <summary>The remote host is actively refusing a connection.</summary>
// Token: 0x04000C39 RID: 3129
[Token(Token = "0x4000C39")]
ConnectionRefused,
/// <summary>The operation failed because the remote host is down.</summary>
// Token: 0x04000C3A RID: 3130
[Token(Token = "0x4000C3A")]
HostDown = 10064,
/// <summary>There is no network route to the specified host.</summary>
// Token: 0x04000C3B RID: 3131
[Token(Token = "0x4000C3B")]
HostUnreachable,
/// <summary>Too many processes are using the underlying socket provider.</summary>
// Token: 0x04000C3C RID: 3132
[Token(Token = "0x4000C3C")]
ProcessLimit = 10067,
/// <summary>The network subsystem is unavailable.</summary>
// Token: 0x04000C3D RID: 3133
[Token(Token = "0x4000C3D")]
SystemNotReady = 10091,
/// <summary>The version of the underlying socket provider is out of range.</summary>
// Token: 0x04000C3E RID: 3134
[Token(Token = "0x4000C3E")]
VersionNotSupported,
/// <summary>The underlying socket provider has not been initialized.</summary>
// Token: 0x04000C3F RID: 3135
[Token(Token = "0x4000C3F")]
NotInitialized,
/// <summary>A graceful shutdown is in progress.</summary>
// Token: 0x04000C40 RID: 3136
[Token(Token = "0x4000C40")]
Disconnecting = 10101,
/// <summary>The specified class was not found.</summary>
// Token: 0x04000C41 RID: 3137
[Token(Token = "0x4000C41")]
TypeNotFound = 10109,
/// <summary>No such host is known. The name is not an official host name or alias.</summary>
// Token: 0x04000C42 RID: 3138
[Token(Token = "0x4000C42")]
HostNotFound = 11001,
/// <summary>The name of the host could not be resolved. Try again later.</summary>
// Token: 0x04000C43 RID: 3139
[Token(Token = "0x4000C43")]
TryAgain,
/// <summary>The error is unrecoverable or the requested database cannot be located.</summary>
// Token: 0x04000C44 RID: 3140
[Token(Token = "0x4000C44")]
NoRecovery,
/// <summary>The requested name or IP address was not found on the name server.</summary>
// Token: 0x04000C45 RID: 3141
[Token(Token = "0x4000C45")]
NoData,
/// <summary>The application has initiated an overlapped operation that cannot be completed immediately.</summary>
// Token: 0x04000C46 RID: 3142
[Token(Token = "0x4000C46")]
IOPending = 997,
/// <summary>The overlapped operation was aborted due to the closure of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
// Token: 0x04000C47 RID: 3143
[Token(Token = "0x4000C47")]
OperationAborted = 995
}
}
+114
View File
@@ -0,0 +1,114 @@
using System;
using System.ComponentModel;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>The exception that is thrown when a socket error occurs.</summary>
// Token: 0x020002D5 RID: 725
[Token(Token = "0x20002D5")]
[Serializable]
public class SocketException : Win32Exception
{
// Token: 0x0600132E RID: 4910 RVA: 0x00008B08 File Offset: 0x00006D08
[Token(Token = "0x600132E")]
[Address(RVA = "0x2626030", Offset = "0x2624E30", VA = "0x182626030")]
private static int WSAGetLastError_internal()
{
return 0;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class with the last operating system error code.</summary>
// Token: 0x0600132F RID: 4911 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600132F")]
[Address(RVA = "0x26261F0", Offset = "0x2624FF0", VA = "0x1826261F0")]
public SocketException()
{
}
// Token: 0x06001330 RID: 4912 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001330")]
[Address(RVA = "0x2626180", Offset = "0x2624F80", VA = "0x182626180")]
internal SocketException(int error, string message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class with the specified error code.</summary>
/// <param name="errorCode">The error code that indicates the error that occurred.</param>
// Token: 0x06001331 RID: 4913 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001331")]
[Address(RVA = "0x2626040", Offset = "0x2624E40", VA = "0x182626040")]
public SocketException(int errorCode)
{
}
// Token: 0x06001332 RID: 4914 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001332")]
[Address(RVA = "0x26260A0", Offset = "0x2624EA0", VA = "0x1826260A0")]
internal SocketException(SocketError socketError)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance that contains the information that is required to serialize the new <see cref="T:System.Net.Sockets.SocketException" /> instance.</param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.Sockets.SocketException" /> instance.</param>
// Token: 0x06001333 RID: 4915 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001333")]
[Address(RVA = "0x2626100", Offset = "0x2624F00", VA = "0x182626100")]
protected SocketException(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
}
/// <summary>Gets the error code that is associated with this exception.</summary>
/// <returns>An integer error code that is associated with this exception.</returns>
// Token: 0x170003E8 RID: 1000
// (get) Token: 0x06001334 RID: 4916 RVA: 0x00008B20 File Offset: 0x00006D20
[Token(Token = "0x170003E8")]
public override int ErrorCode
{
[Token(Token = "0x6001334")]
[Address(RVA = "0x404240", Offset = "0x403040", VA = "0x180404240", Slot = "12")]
get
{
return 0;
}
}
/// <summary>Gets the error message that is associated with this exception.</summary>
/// <returns>A string that contains the error message.</returns>
// Token: 0x170003E9 RID: 1001
// (get) Token: 0x06001335 RID: 4917 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003E9")]
public override string Message
{
[Token(Token = "0x6001335")]
[Address(RVA = "0x2626260", Offset = "0x2625060", VA = "0x182626260", Slot = "5")]
get
{
return null;
}
}
/// <summary>Gets the error code that is associated with this exception.</summary>
/// <returns>An integer error code that is associated with this exception.</returns>
// Token: 0x170003EA RID: 1002
// (get) Token: 0x06001336 RID: 4918 RVA: 0x00008B38 File Offset: 0x00006D38
[Token(Token = "0x170003EA")]
public SocketError SocketErrorCode
{
[Token(Token = "0x6001336")]
[Address(RVA = "0x404240", Offset = "0x403040", VA = "0x180404240")]
get
{
return SocketError.Success;
}
}
// Token: 0x04000B76 RID: 2934
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x4000B76")]
[NonSerialized]
private EndPoint m_EndPoint;
}
}
+53
View File
@@ -0,0 +1,53 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Specifies socket send and receive behaviors.</summary>
// Token: 0x020002E5 RID: 741
[Token(Token = "0x20002E5")]
[Flags]
public enum SocketFlags
{
/// <summary>Use no flags for this call.</summary>
// Token: 0x04000C49 RID: 3145
[Token(Token = "0x4000C49")]
None = 0,
/// <summary>Process out-of-band data.</summary>
// Token: 0x04000C4A RID: 3146
[Token(Token = "0x4000C4A")]
OutOfBand = 1,
/// <summary>Peek at the incoming message.</summary>
// Token: 0x04000C4B RID: 3147
[Token(Token = "0x4000C4B")]
Peek = 2,
/// <summary>Send without using routing tables.</summary>
// Token: 0x04000C4C RID: 3148
[Token(Token = "0x4000C4C")]
DontRoute = 4,
/// <summary>Provides a standard value for the number of WSABUF structures that are used to send and receive data. This value is not used or supported on .NET Framework 4.5.</summary>
// Token: 0x04000C4D RID: 3149
[Token(Token = "0x4000C4D")]
MaxIOVectorLength = 16,
/// <summary>The message was too large to fit into the specified buffer and was truncated.</summary>
// Token: 0x04000C4E RID: 3150
[Token(Token = "0x4000C4E")]
Truncated = 256,
/// <summary>Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.</summary>
// Token: 0x04000C4F RID: 3151
[Token(Token = "0x4000C4F")]
ControlDataTruncated = 512,
/// <summary>Indicates a broadcast packet.</summary>
// Token: 0x04000C50 RID: 3152
[Token(Token = "0x4000C50")]
Broadcast = 1024,
/// <summary>Indicates a multicast packet.</summary>
// Token: 0x04000C51 RID: 3153
[Token(Token = "0x4000C51")]
Multicast = 2048,
/// <summary>Partial send or receive for message.</summary>
// Token: 0x04000C52 RID: 3154
[Token(Token = "0x4000C52")]
Partial = 32768
}
}
+47
View File
@@ -0,0 +1,47 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
// Token: 0x020002F0 RID: 752
[Token(Token = "0x20002F0")]
internal enum SocketOperation
{
// Token: 0x04000CBF RID: 3263
[Token(Token = "0x4000CBF")]
Accept,
// Token: 0x04000CC0 RID: 3264
[Token(Token = "0x4000CC0")]
Connect,
// Token: 0x04000CC1 RID: 3265
[Token(Token = "0x4000CC1")]
Receive,
// Token: 0x04000CC2 RID: 3266
[Token(Token = "0x4000CC2")]
ReceiveFrom,
// Token: 0x04000CC3 RID: 3267
[Token(Token = "0x4000CC3")]
Send,
// Token: 0x04000CC4 RID: 3268
[Token(Token = "0x4000CC4")]
SendTo,
// Token: 0x04000CC5 RID: 3269
[Token(Token = "0x4000CC5")]
RecvJustCallback,
// Token: 0x04000CC6 RID: 3270
[Token(Token = "0x4000CC6")]
SendJustCallback,
// Token: 0x04000CC7 RID: 3271
[Token(Token = "0x4000CC7")]
Disconnect,
// Token: 0x04000CC8 RID: 3272
[Token(Token = "0x4000CC8")]
AcceptReceive,
// Token: 0x04000CC9 RID: 3273
[Token(Token = "0x4000CC9")]
ReceiveGeneric,
// Token: 0x04000CCA RID: 3274
[Token(Token = "0x4000CCA")]
SendGeneric
}
}
+37
View File
@@ -0,0 +1,37 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Defines socket option levels for the <see cref="M:System.Net.Sockets.Socket.SetSocketOption(System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,System.Int32)" /> and <see cref="M:System.Net.Sockets.Socket.GetSocketOption(System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName)" /> methods.</summary>
// Token: 0x020002E6 RID: 742
[Token(Token = "0x20002E6")]
public enum SocketOptionLevel
{
/// <summary>
/// <see cref="T:System.Net.Sockets.Socket" /> options apply to all sockets.</summary>
// Token: 0x04000C54 RID: 3156
[Token(Token = "0x4000C54")]
Socket = 65535,
/// <summary>
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to IP sockets.</summary>
// Token: 0x04000C55 RID: 3157
[Token(Token = "0x4000C55")]
IP = 0,
/// <summary>
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to IPv6 sockets.</summary>
// Token: 0x04000C56 RID: 3158
[Token(Token = "0x4000C56")]
IPv6 = 41,
/// <summary>
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to TCP sockets.</summary>
// Token: 0x04000C57 RID: 3159
[Token(Token = "0x4000C57")]
Tcp = 6,
/// <summary>
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to UDP sockets.</summary>
// Token: 0x04000C58 RID: 3160
[Token(Token = "0x4000C58")]
Udp = 17
}
}
+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
}
}
+24
View File
@@ -0,0 +1,24 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Defines constants that are used by the <see cref="M:System.Net.Sockets.Socket.Shutdown(System.Net.Sockets.SocketShutdown)" /> method.</summary>
// Token: 0x020002E8 RID: 744
[Token(Token = "0x20002E8")]
public enum SocketShutdown
{
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for receiving. This field is constant.</summary>
// Token: 0x04000C89 RID: 3209
[Token(Token = "0x4000C89")]
Receive,
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for sending. This field is constant.</summary>
// Token: 0x04000C8A RID: 3210
[Token(Token = "0x4000C8A")]
Send,
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for both sending and receiving. This field is constant.</summary>
// Token: 0x04000C8B RID: 3211
[Token(Token = "0x4000C8B")]
Both
}
}
@@ -0,0 +1,24 @@
using System;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>This class contains extension methods to the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
// Token: 0x020002F1 RID: 753
[Token(Token = "0x20002F1")]
public static class SocketTaskExtensions
{
/// <summary>Establishes a connection to a remote host. The host is specified by an IP address and a port number.</summary>
/// <param name="socket">The socket to perform the connect operation on.</param>
/// <param name="address">The IP address of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
// Token: 0x0600142C RID: 5164 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600142C")]
[Address(RVA = "0x26262F0", Offset = "0x26250F0", VA = "0x1826262F0")]
public static Task ConnectAsync(this Socket socket, IPAddress address, int port)
{
return null;
}
}
}
+36
View File
@@ -0,0 +1,36 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Specifies the type of socket that an instance of the <see cref="T:System.Net.Sockets.Socket" /> class represents.</summary>
// Token: 0x020002E9 RID: 745
[Token(Token = "0x20002E9")]
public enum SocketType
{
/// <summary>Supports reliable, two-way, connection-based byte streams without the duplication of data and without preservation of boundaries. A <see cref="T:System.Net.Sockets.Socket" /> of this type communicates with a single peer and requires a remote host connection before communication can begin. <see cref="F:System.Net.Sockets.SocketType.Stream" /> uses the Transmission Control Protocol (<see langword="ProtocolType" />.<see cref="F:System.Net.Sockets.ProtocolType.Tcp" />) and the <see langword="AddressFamily" />.<see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> address family.</summary>
// Token: 0x04000C8D RID: 3213
[Token(Token = "0x4000C8D")]
Stream = 1,
/// <summary>Supports datagrams, which are connectionless, unreliable messages of a fixed (typically small) maximum length. Messages might be lost or duplicated and might arrive out of order. A <see cref="T:System.Net.Sockets.Socket" /> of type <see cref="F:System.Net.Sockets.SocketType.Dgram" /> requires no connection prior to sending and receiving data, and can communicate with multiple peers. <see cref="F:System.Net.Sockets.SocketType.Dgram" /> uses the Datagram Protocol (<see langword="ProtocolType" />.<see cref="F:System.Net.Sockets.ProtocolType.Udp" />) and the <see langword="AddressFamily" />.<see cref="F:System.Net.Sockets.AddressFamily.InterNetwork" /> address family.</summary>
// Token: 0x04000C8E RID: 3214
[Token(Token = "0x4000C8E")]
Dgram,
/// <summary>Supports access to the underlying transport protocol. Using <see cref="F:System.Net.Sockets.SocketType.Raw" />, you can communicate using protocols like Internet Control Message Protocol (<see langword="ProtocolType" />.<see cref="F:System.Net.Sockets.ProtocolType.Icmp" />) and Internet Group Management Protocol (<see langword="ProtocolType" />.<see cref="F:System.Net.Sockets.ProtocolType.Igmp" />). Your application must provide a complete IP header when sending. Received datagrams return with the IP header and options intact.</summary>
// Token: 0x04000C8F RID: 3215
[Token(Token = "0x4000C8F")]
Raw,
/// <summary>Supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data. Rdm (Reliably Delivered Messages) messages arrive unduplicated and in order. Furthermore, the sender is notified if messages are lost. If you initialize a <see cref="T:System.Net.Sockets.Socket" /> using <see cref="F:System.Net.Sockets.SocketType.Rdm" />, you do not require a remote host connection before sending and receiving data. With <see cref="F:System.Net.Sockets.SocketType.Rdm" />, you can communicate with multiple peers.</summary>
// Token: 0x04000C90 RID: 3216
[Token(Token = "0x4000C90")]
Rdm,
/// <summary>Provides connection-oriented and reliable two-way transfer of ordered byte streams across a network. <see cref="F:System.Net.Sockets.SocketType.Seqpacket" /> does not duplicate data, and it preserves boundaries within the data stream. A <see cref="T:System.Net.Sockets.Socket" /> of type <see cref="F:System.Net.Sockets.SocketType.Seqpacket" /> communicates with a single peer and requires a remote host connection before communication can begin.</summary>
// Token: 0x04000C91 RID: 3217
[Token(Token = "0x4000C91")]
Seqpacket,
/// <summary>Specifies an unknown <see cref="T:System.Net.Sockets.Socket" /> type.</summary>
// Token: 0x04000C92 RID: 3218
[Token(Token = "0x4000C92")]
Unknown = -1
}
}
+217
View File
@@ -0,0 +1,217 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Provides client connections for TCP network services.</summary>
// Token: 0x020002EA RID: 746
[Token(Token = "0x20002EA")]
public class TcpClient : IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class with the specified family.</summary>
/// <param name="family">The <see cref="P:System.Net.IPAddress.AddressFamily" /> of the IP protocol.</param>
/// <exception cref="T:System.ArgumentException">The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetwork
/// -or-
/// The <paramref name="family" /> parameter is not equal to AddressFamily.InterNetworkV6</exception>
// Token: 0x060013F9 RID: 5113 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013F9")]
[Address(RVA = "0x262FB30", Offset = "0x262E930", VA = "0x18262FB30")]
public TcpClient(AddressFamily family)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpClient" /> class and connects to the specified port on the specified host.</summary>
/// <param name="hostname">The DNS name of the remote host to which you intend to connect.</param>
/// <param name="port">The port number of the remote host to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hostname" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="port" /> parameter is not between <see cref="F:System.Net.IPEndPoint.MinPort" /> and <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
// Token: 0x060013FA RID: 5114 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FA")]
[Address(RVA = "0x262FCC0", Offset = "0x262EAC0", VA = "0x18262FCC0")]
public TcpClient(string hostname, int port)
{
}
// Token: 0x060013FB RID: 5115 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FB")]
[Address(RVA = "0x262FC70", Offset = "0x262EA70", VA = "0x18262FC70")]
internal TcpClient(Socket acceptedSocket)
{
}
/// <summary>Gets or sets the underlying <see cref="T:System.Net.Sockets.Socket" />.</summary>
/// <returns>The underlying network <see cref="T:System.Net.Sockets.Socket" />.</returns>
// Token: 0x1700040D RID: 1037
// (get) Token: 0x060013FC RID: 5116 RVA: 0x00002050 File Offset: 0x00000250
// (set) Token: 0x060013FD RID: 5117 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x1700040D")]
public Socket Client
{
[Token(Token = "0x60013FC")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return null;
}
[Token(Token = "0x60013FD")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set
{
}
}
/// <summary>Gets a value indicating whether the underlying <see cref="T:System.Net.Sockets.Socket" /> for a <see cref="T:System.Net.Sockets.TcpClient" /> is connected to a remote host.</summary>
/// <returns>
/// <see langword="true" /> if the <see cref="P:System.Net.Sockets.TcpClient.Client" /> socket was connected to a remote resource as of the most recent operation; otherwise, <see langword="false" />.</returns>
// Token: 0x1700040E RID: 1038
// (get) Token: 0x060013FE RID: 5118 RVA: 0x000091E0 File Offset: 0x000073E0
[Token(Token = "0x1700040E")]
public bool Connected
{
[Token(Token = "0x60013FE")]
[Address(RVA = "0x262FE70", Offset = "0x262EC70", VA = "0x18262FE70")]
get
{
return default(bool);
}
}
/// <summary>Connects the client to the specified port on the specified host.</summary>
/// <param name="hostname">The DNS name of the remote host to which you intend to connect.</param>
/// <param name="port">The port number of the remote host to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="hostname" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="port" /> parameter is not between <see cref="F:System.Net.IPEndPoint.MinPort" /> and <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">
/// <see cref="T:System.Net.Sockets.TcpClient" /> is closed.</exception>
// Token: 0x060013FF RID: 5119 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x60013FF")]
[Address(RVA = "0x262F2A0", Offset = "0x262E0A0", VA = "0x18262F2A0")]
public void Connect(string hostname, int port)
{
}
/// <summary>Connects the client to a remote TCP host using the specified remote network endpoint.</summary>
/// <param name="remoteEP">The <see cref="T:System.Net.IPEndPoint" /> to which you intend to connect.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="remoteEp" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when accessing the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.TcpClient" /> is closed.</exception>
// Token: 0x06001400 RID: 5120 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001400")]
[Address(RVA = "0x262F1B0", Offset = "0x262DFB0", VA = "0x18262F1B0")]
public void Connect(IPEndPoint remoteEP)
{
}
/// <summary>Begins an asynchronous request for a remote host connection. The remote host is specified by a host name (<see cref="T:System.String" />) and a port number (<see cref="T:System.Int32" />).</summary>
/// <param name="host">The name of the remote host.</param>
/// <param name="port">The port number of the remote host.</param>
/// <param name="requestCallback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the operation is complete.</param>
/// <param name="state">A user-defined object that contains information about the connect operation. This object is passed to the <paramref name="requestCallback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> object that references the asynchronous connection.</returns>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="host" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
/// <exception cref="T:System.Security.SecurityException">A caller higher in the call stack does not have permission for the requested operation.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The port number is not valid.</exception>
// Token: 0x06001401 RID: 5121 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001401")]
[Address(RVA = "0x262EFD0", Offset = "0x262DDD0", VA = "0x18262EFD0")]
public IAsyncResult BeginConnect(string host, int port, AsyncCallback requestCallback, object state)
{
return null;
}
/// <summary>Ends a pending asynchronous connection attempt.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> object returned by a call to <see cref="Overload:System.Net.Sockets.TcpClient.BeginConnect" />.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter was not returned by a call to a <see cref="Overload:System.Net.Sockets.TcpClient.BeginConnect" /> method.</exception>
/// <exception cref="T:System.InvalidOperationException">The <see cref="M:System.Net.Sockets.TcpClient.EndConnect(System.IAsyncResult)" /> method was previously called for the asynchronous connection.</exception>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred when attempting to access the <see cref="T:System.Net.Sockets.Socket" />.</exception>
/// <exception cref="T:System.ObjectDisposedException">The underlying <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x06001402 RID: 5122 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001402")]
[Address(RVA = "0x262F920", Offset = "0x262E720", VA = "0x18262F920")]
public void EndConnect(IAsyncResult asyncResult)
{
}
/// <summary>Returns the <see cref="T:System.Net.Sockets.NetworkStream" /> used to send and receive data.</summary>
/// <returns>The underlying <see cref="T:System.Net.Sockets.NetworkStream" />.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="T:System.Net.Sockets.TcpClient" /> is not connected to a remote host.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.TcpClient" /> has been closed.</exception>
// Token: 0x06001403 RID: 5123 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001403")]
[Address(RVA = "0x262FA00", Offset = "0x262E800", VA = "0x18262FA00")]
public NetworkStream GetStream()
{
return null;
}
/// <summary>Disposes this <see cref="T:System.Net.Sockets.TcpClient" /> instance and requests that the underlying TCP connection be closed.</summary>
// Token: 0x06001404 RID: 5124 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001404")]
[Address(RVA = "0x262F170", Offset = "0x262DF70", VA = "0x18262F170")]
public void Close()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">Set to <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x06001405 RID: 5125 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001405")]
[Address(RVA = "0x262F810", Offset = "0x262E610", VA = "0x18262F810", Slot = "5")]
protected virtual void Dispose(bool disposing)
{
}
/// <summary>Releases the managed and unmanaged resources used by the <see cref="T:System.Net.Sockets.TcpClient" />.</summary>
// Token: 0x06001406 RID: 5126 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001406")]
[Address(RVA = "0xF3D5B0", Offset = "0xF3C3B0", VA = "0x180F3D5B0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> class.</summary>
// Token: 0x06001407 RID: 5127 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001407")]
[Address(RVA = "0x262F980", Offset = "0x262E780", VA = "0x18262F980", Slot = "1")]
protected override void Finalize()
{
}
// Token: 0x06001408 RID: 5128 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001408")]
[Address(RVA = "0x262FE90", Offset = "0x262EC90", VA = "0x18262FE90")]
private void initialize()
{
}
// Token: 0x04000C93 RID: 3219
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000C93")]
private Socket m_ClientSocket;
// Token: 0x04000C94 RID: 3220
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000C94")]
private bool m_Active;
// Token: 0x04000C95 RID: 3221
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000C95")]
private NetworkStream m_DataStream;
// Token: 0x04000C96 RID: 3222
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4000C96")]
private AddressFamily m_Family;
// Token: 0x04000C97 RID: 3223
[FieldOffset(Offset = "0x2C")]
[Token(Token = "0x4000C97")]
private bool m_CleanedUp;
}
}
+116
View File
@@ -0,0 +1,116 @@
using System;
using Cpp2IlInjected;
namespace System.Net.Sockets
{
/// <summary>Listens for connections from TCP network clients.</summary>
// Token: 0x020002EB RID: 747
[Token(Token = "0x20002EB")]
public class TcpListener
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.TcpListener" /> class that listens for incoming connection attempts on the specified local IP address and port number.</summary>
/// <param name="localaddr">An <see cref="T:System.Net.IPAddress" /> that represents the local IP address.</param>
/// <param name="port">The port on which to listen for incoming connection attempts.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="localaddr" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="port" /> is not between <see cref="F:System.Net.IPEndPoint.MinPort" /> and <see cref="F:System.Net.IPEndPoint.MaxPort" />.</exception>
// Token: 0x06001409 RID: 5129 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001409")]
[Address(RVA = "0x26306D0", Offset = "0x262F4D0", VA = "0x1826306D0")]
public TcpListener(IPAddress localaddr, int port)
{
}
/// <summary>Gets the underlying <see cref="T:System.Net.EndPoint" /> of the current <see cref="T:System.Net.Sockets.TcpListener" />.</summary>
/// <returns>The <see cref="T:System.Net.EndPoint" /> to which the <see cref="T:System.Net.Sockets.Socket" /> is bound.</returns>
// Token: 0x1700040F RID: 1039
// (get) Token: 0x0600140A RID: 5130 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x1700040F")]
public EndPoint LocalEndpoint
{
[Token(Token = "0x600140A")]
[Address(RVA = "0x2630840", Offset = "0x262F640", VA = "0x182630840")]
get
{
return null;
}
}
/// <summary>Starts listening for incoming connection requests.</summary>
/// <exception cref="T:System.Net.Sockets.SocketException">Use the <see cref="P:System.Net.Sockets.SocketException.ErrorCode" /> property to obtain the specific error code. When you have obtained this code, you can refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.</exception>
// Token: 0x0600140B RID: 5131 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600140B")]
[Address(RVA = "0x2630580", Offset = "0x262F380", VA = "0x182630580")]
public void Start()
{
}
/// <summary>Starts listening for incoming connection requests with a maximum number of pending connection.</summary>
/// <param name="backlog">The maximum length of the pending connections queue.</param>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred while accessing the socket.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="backlog" /> parameter is less than zero or exceeds the maximum number of permitted connections.</exception>
/// <exception cref="T:System.InvalidOperationException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is null.</exception>
// Token: 0x0600140C RID: 5132 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600140C")]
[Address(RVA = "0x2630240", Offset = "0x262F040", VA = "0x182630240")]
public void Start(int backlog)
{
}
/// <summary>Closes the listener.</summary>
/// <exception cref="T:System.Net.Sockets.SocketException">Use the <see cref="P:System.Net.Sockets.SocketException.ErrorCode" /> property to obtain the specific error code. When you have obtained this code, you can refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.</exception>
// Token: 0x0600140D RID: 5133 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600140D")]
[Address(RVA = "0x2630590", Offset = "0x262F390", VA = "0x182630590")]
public void Stop()
{
}
/// <summary>Begins an asynchronous operation to accept an incoming connection attempt.</summary>
/// <param name="callback">An <see cref="T:System.AsyncCallback" /> delegate that references the method to invoke when the operation is complete.</param>
/// <param name="state">A user-defined object containing information about the accept operation. This object is passed to the <paramref name="callback" /> delegate when the operation is complete.</param>
/// <returns>An <see cref="T:System.IAsyncResult" /> that references the asynchronous creation of the <see cref="T:System.Net.Sockets.TcpClient" />.</returns>
/// <exception cref="T:System.Net.Sockets.SocketException">An error occurred while attempting to access the socket.</exception>
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.Socket" /> has been closed.</exception>
// Token: 0x0600140E RID: 5134 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600140E")]
[Address(RVA = "0x262FF10", Offset = "0x262ED10", VA = "0x18262FF10")]
public IAsyncResult BeginAcceptTcpClient(AsyncCallback callback, object state)
{
return null;
}
/// <summary>Asynchronously accepts an incoming connection attempt and creates a new <see cref="T:System.Net.Sockets.TcpClient" /> to handle remote host communication.</summary>
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> returned by a call to the <see cref="M:System.Net.Sockets.TcpListener.BeginAcceptTcpClient(System.AsyncCallback,System.Object)" /> method.</param>
/// <returns>A <see cref="T:System.Net.Sockets.TcpClient" />.
/// The <see cref="T:System.Net.Sockets.TcpClient" /> used to send and receive data.</returns>
// Token: 0x0600140F RID: 5135 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600140F")]
[Address(RVA = "0x2630110", Offset = "0x262EF10", VA = "0x182630110")]
public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult)
{
return null;
}
// Token: 0x04000C98 RID: 3224
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000C98")]
private IPEndPoint m_ServerSocketEP;
// Token: 0x04000C99 RID: 3225
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000C99")]
private Socket m_ServerSocket;
// Token: 0x04000C9A RID: 3226
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4000C9A")]
private bool m_Active;
// Token: 0x04000C9B RID: 3227
[FieldOffset(Offset = "0x21")]
[Token(Token = "0x4000C9B")]
private bool m_ExclusiveAddressUse;
}
}