m
This commit is contained in:
@@ -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: 0x020002D2 RID: 722
|
||||
[Token(Token = "0x20002D2")]
|
||||
public enum AddressFamily
|
||||
{
|
||||
/// <summary>Unknown address family.</summary>
|
||||
// Token: 0x04000B6B RID: 2923
|
||||
[Token(Token = "0x4000B6B")]
|
||||
Unknown = -1,
|
||||
/// <summary>Unspecified address family.</summary>
|
||||
// Token: 0x04000B6C RID: 2924
|
||||
[Token(Token = "0x4000B6C")]
|
||||
Unspecified,
|
||||
/// <summary>Unix local to host address.</summary>
|
||||
// Token: 0x04000B6D RID: 2925
|
||||
[Token(Token = "0x4000B6D")]
|
||||
Unix,
|
||||
/// <summary>Address for IP version 4.</summary>
|
||||
// Token: 0x04000B6E RID: 2926
|
||||
[Token(Token = "0x4000B6E")]
|
||||
InterNetwork,
|
||||
/// <summary>ARPANET IMP address.</summary>
|
||||
// Token: 0x04000B6F RID: 2927
|
||||
[Token(Token = "0x4000B6F")]
|
||||
ImpLink,
|
||||
/// <summary>Address for PUP protocols.</summary>
|
||||
// Token: 0x04000B70 RID: 2928
|
||||
[Token(Token = "0x4000B70")]
|
||||
Pup,
|
||||
/// <summary>Address for MIT CHAOS protocols.</summary>
|
||||
// Token: 0x04000B71 RID: 2929
|
||||
[Token(Token = "0x4000B71")]
|
||||
Chaos,
|
||||
/// <summary>Address for Xerox NS protocols.</summary>
|
||||
// Token: 0x04000B72 RID: 2930
|
||||
[Token(Token = "0x4000B72")]
|
||||
NS,
|
||||
/// <summary>IPX or SPX address.</summary>
|
||||
// Token: 0x04000B73 RID: 2931
|
||||
[Token(Token = "0x4000B73")]
|
||||
Ipx = 6,
|
||||
/// <summary>Address for ISO protocols.</summary>
|
||||
// Token: 0x04000B74 RID: 2932
|
||||
[Token(Token = "0x4000B74")]
|
||||
Iso,
|
||||
/// <summary>Address for OSI protocols.</summary>
|
||||
// Token: 0x04000B75 RID: 2933
|
||||
[Token(Token = "0x4000B75")]
|
||||
Osi = 7,
|
||||
/// <summary>European Computer Manufacturers Association (ECMA) address.</summary>
|
||||
// Token: 0x04000B76 RID: 2934
|
||||
[Token(Token = "0x4000B76")]
|
||||
Ecma,
|
||||
/// <summary>Address for Datakit protocols.</summary>
|
||||
// Token: 0x04000B77 RID: 2935
|
||||
[Token(Token = "0x4000B77")]
|
||||
DataKit,
|
||||
/// <summary>Addresses for CCITT protocols, such as X.25.</summary>
|
||||
// Token: 0x04000B78 RID: 2936
|
||||
[Token(Token = "0x4000B78")]
|
||||
Ccitt,
|
||||
/// <summary>IBM SNA address.</summary>
|
||||
// Token: 0x04000B79 RID: 2937
|
||||
[Token(Token = "0x4000B79")]
|
||||
Sna,
|
||||
/// <summary>DECnet address.</summary>
|
||||
// Token: 0x04000B7A RID: 2938
|
||||
[Token(Token = "0x4000B7A")]
|
||||
DecNet,
|
||||
/// <summary>Direct data-link interface address.</summary>
|
||||
// Token: 0x04000B7B RID: 2939
|
||||
[Token(Token = "0x4000B7B")]
|
||||
DataLink,
|
||||
/// <summary>LAT address.</summary>
|
||||
// Token: 0x04000B7C RID: 2940
|
||||
[Token(Token = "0x4000B7C")]
|
||||
Lat,
|
||||
/// <summary>NSC Hyperchannel address.</summary>
|
||||
// Token: 0x04000B7D RID: 2941
|
||||
[Token(Token = "0x4000B7D")]
|
||||
HyperChannel,
|
||||
/// <summary>AppleTalk address.</summary>
|
||||
// Token: 0x04000B7E RID: 2942
|
||||
[Token(Token = "0x4000B7E")]
|
||||
AppleTalk,
|
||||
/// <summary>NetBios address.</summary>
|
||||
// Token: 0x04000B7F RID: 2943
|
||||
[Token(Token = "0x4000B7F")]
|
||||
NetBios,
|
||||
/// <summary>VoiceView address.</summary>
|
||||
// Token: 0x04000B80 RID: 2944
|
||||
[Token(Token = "0x4000B80")]
|
||||
VoiceView,
|
||||
/// <summary>FireFox address.</summary>
|
||||
// Token: 0x04000B81 RID: 2945
|
||||
[Token(Token = "0x4000B81")]
|
||||
FireFox,
|
||||
/// <summary>Banyan address.</summary>
|
||||
// Token: 0x04000B82 RID: 2946
|
||||
[Token(Token = "0x4000B82")]
|
||||
Banyan = 21,
|
||||
/// <summary>Native ATM services address.</summary>
|
||||
// Token: 0x04000B83 RID: 2947
|
||||
[Token(Token = "0x4000B83")]
|
||||
Atm,
|
||||
/// <summary>Address for IP version 6.</summary>
|
||||
// Token: 0x04000B84 RID: 2948
|
||||
[Token(Token = "0x4000B84")]
|
||||
InterNetworkV6,
|
||||
/// <summary>Address for Microsoft cluster products.</summary>
|
||||
// Token: 0x04000B85 RID: 2949
|
||||
[Token(Token = "0x4000B85")]
|
||||
Cluster,
|
||||
/// <summary>IEEE 1284.4 workgroup address.</summary>
|
||||
// Token: 0x04000B86 RID: 2950
|
||||
[Token(Token = "0x4000B86")]
|
||||
Ieee12844,
|
||||
/// <summary>IrDA address.</summary>
|
||||
// Token: 0x04000B87 RID: 2951
|
||||
[Token(Token = "0x4000B87")]
|
||||
Irda,
|
||||
/// <summary>Address for Network Designers OSI gateway-enabled protocols.</summary>
|
||||
// Token: 0x04000B88 RID: 2952
|
||||
[Token(Token = "0x4000B88")]
|
||||
NetworkDesigners = 28,
|
||||
/// <summary>MAX address.</summary>
|
||||
// Token: 0x04000B89 RID: 2953
|
||||
[Token(Token = "0x4000B89")]
|
||||
Max
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D3 RID: 723
|
||||
[Token(Token = "0x20002D3")]
|
||||
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: 0x04000B8B RID: 2955
|
||||
[Token(Token = "0x4000B8B")]
|
||||
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: 0x04000B8C RID: 2956
|
||||
[Token(Token = "0x4000B8C")]
|
||||
NonBlockingIO,
|
||||
/// <summary>Return the number of bytes available for reading. This value is equal to the Winsock 2 FIONREAD constant.</summary>
|
||||
// Token: 0x04000B8D RID: 2957
|
||||
[Token(Token = "0x4000B8D")]
|
||||
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: 0x04000B8E RID: 2958
|
||||
[Token(Token = "0x4000B8E")]
|
||||
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: 0x04000B8F RID: 2959
|
||||
[Token(Token = "0x4000B8F")]
|
||||
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: 0x04000B90 RID: 2960
|
||||
[Token(Token = "0x4000B90")]
|
||||
EnableCircularQueuing = 671088642L,
|
||||
/// <summary>Discard the contents of the sending queue. This value is equal to the Winsock 2 SIO_FLUSH constant.</summary>
|
||||
// Token: 0x04000B91 RID: 2961
|
||||
[Token(Token = "0x4000B91")]
|
||||
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: 0x04000B92 RID: 2962
|
||||
[Token(Token = "0x4000B92")]
|
||||
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: 0x04000B93 RID: 2963
|
||||
[Token(Token = "0x4000B93")]
|
||||
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: 0x04000B94 RID: 2964
|
||||
[Token(Token = "0x4000B94")]
|
||||
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: 0x04000B95 RID: 2965
|
||||
[Token(Token = "0x4000B95")]
|
||||
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: 0x04000B96 RID: 2966
|
||||
[Token(Token = "0x4000B96")]
|
||||
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: 0x04000B97 RID: 2967
|
||||
[Token(Token = "0x4000B97")]
|
||||
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: 0x04000B98 RID: 2968
|
||||
[Token(Token = "0x4000B98")]
|
||||
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: 0x04000B99 RID: 2969
|
||||
[Token(Token = "0x4000B99")]
|
||||
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: 0x04000B9A RID: 2970
|
||||
[Token(Token = "0x4000B9A")]
|
||||
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: 0x04000B9B RID: 2971
|
||||
[Token(Token = "0x4000B9B")]
|
||||
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: 0x04000B9C RID: 2972
|
||||
[Token(Token = "0x4000B9C")]
|
||||
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: 0x04000B9D RID: 2973
|
||||
[Token(Token = "0x4000B9D")]
|
||||
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: 0x04000B9E RID: 2974
|
||||
[Token(Token = "0x4000B9E")]
|
||||
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: 0x04000B9F RID: 2975
|
||||
[Token(Token = "0x4000B9F")]
|
||||
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: 0x04000BA0 RID: 2976
|
||||
[Token(Token = "0x4000BA0")]
|
||||
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: 0x04000BA1 RID: 2977
|
||||
[Token(Token = "0x4000BA1")]
|
||||
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: 0x04000BA2 RID: 2978
|
||||
[Token(Token = "0x4000BA2")]
|
||||
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: 0x04000BA3 RID: 2979
|
||||
[Token(Token = "0x4000BA3")]
|
||||
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: 0x04000BA4 RID: 2980
|
||||
[Token(Token = "0x4000BA4")]
|
||||
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: 0x04000BA5 RID: 2981
|
||||
[Token(Token = "0x4000BA5")]
|
||||
KeepAliveValues,
|
||||
/// <summary>This value is equal to the Winsock 2 SIO_ABSORB_RTRALERT constant.</summary>
|
||||
// Token: 0x04000BA6 RID: 2982
|
||||
[Token(Token = "0x4000BA6")]
|
||||
AbsorbRouterAlert,
|
||||
/// <summary>Set the interface used for outgoing unicast packets. This value is equal to the Winsock 2 SIO_UCAST_IF constant.</summary>
|
||||
// Token: 0x04000BA7 RID: 2983
|
||||
[Token(Token = "0x4000BA7")]
|
||||
UnicastInterface,
|
||||
/// <summary>This value is equal to the Winsock 2 SIO_LIMIT_BROADCASTS constant.</summary>
|
||||
// Token: 0x04000BA8 RID: 2984
|
||||
[Token(Token = "0x4000BA8")]
|
||||
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: 0x04000BA9 RID: 2985
|
||||
[Token(Token = "0x4000BA9")]
|
||||
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: 0x04000BAA RID: 2986
|
||||
[Token(Token = "0x4000BAA")]
|
||||
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: 0x04000BAB RID: 2987
|
||||
[Token(Token = "0x4000BAB")]
|
||||
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: 0x04000BAC RID: 2988
|
||||
[Token(Token = "0x4000BAC")]
|
||||
DeleteMulticastGroupFromInterface
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D4 RID: 724
|
||||
[Token(Token = "0x20002D4")]
|
||||
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: 0x04000BAE RID: 2990
|
||||
[Token(Token = "0x4000BAE")]
|
||||
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: 0x04000BAF RID: 2991
|
||||
[Token(Token = "0x4000BAF")]
|
||||
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: 0x04000BB0 RID: 2992
|
||||
[Token(Token = "0x4000BB0")]
|
||||
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: 0x04000BB1 RID: 2993
|
||||
[Token(Token = "0x4000BB1")]
|
||||
Restricted = 30
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Contains option values for joining an IPv6 multicast group.</summary>
|
||||
// Token: 0x020002D7 RID: 727
|
||||
[Token(Token = "0x20002D7")]
|
||||
public class IPv6MulticastOption
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D5 RID: 725
|
||||
[Token(Token = "0x20002D5")]
|
||||
public class LingerOption
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.LingerOption" /> class.</summary>
|
||||
/// <param name="enable">
|
||||
/// <see langword="true" /> to remain connected after the <see cref="M:System.Net.Sockets.Socket.Close" /> method is called; otherwise, <see langword="false" />.</param>
|
||||
/// <param name="seconds">The number of seconds to remain connected after the <see cref="M:System.Net.Sockets.Socket.Close" /> method is called.</param>
|
||||
// Token: 0x06001321 RID: 4897 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001321")]
|
||||
[Address(RVA = "0xADCE60", Offset = "0xADBE60", VA = "0x180ADCE60")]
|
||||
public LingerOption(bool enable, int seconds)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets a value that indicates whether to linger after the <see cref="T:System.Net.Sockets.Socket" /> is closed.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if the <see cref="T:System.Net.Sockets.Socket" /> should linger after <see cref="M:System.Net.Sockets.Socket.Close" /> is called; otherwise, <see langword="false" />.</returns>
|
||||
// Token: 0x170003E7 RID: 999
|
||||
// (set) Token: 0x06001322 RID: 4898 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003E7")]
|
||||
public bool Enabled
|
||||
{
|
||||
[Token(Token = "0x6001322")]
|
||||
[Address(RVA = "0x62ADC0", Offset = "0x629DC0", VA = "0x18062ADC0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the amount of time to remain connected after calling the <see cref="M:System.Net.Sockets.Socket.Close" /> method if data remains to be sent.</summary>
|
||||
/// <returns>The amount of time, in seconds, to remain connected after calling <see cref="M:System.Net.Sockets.Socket.Close" />.</returns>
|
||||
// Token: 0x170003E8 RID: 1000
|
||||
// (set) Token: 0x06001323 RID: 4899 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003E8")]
|
||||
public int LingerTime
|
||||
{
|
||||
[Token(Token = "0x6001323")]
|
||||
[Address(RVA = "0x5F1920", Offset = "0x5F0920", VA = "0x1805F1920")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000BB2 RID: 2994
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000BB2")]
|
||||
private bool enabled;
|
||||
|
||||
// Token: 0x04000BB3 RID: 2995
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4000BB3")]
|
||||
private int lingerTime;
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D6 RID: 726
|
||||
[Token(Token = "0x20002D6")]
|
||||
public class MulticastOption
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D8 RID: 728
|
||||
[Token(Token = "0x20002D8")]
|
||||
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: 0x06001324 RID: 4900 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001324")]
|
||||
[Address(RVA = "0xADEC60", Offset = "0xADDC60", VA = "0x180ADEC60")]
|
||||
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: 0x06001325 RID: 4901 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001325")]
|
||||
[Address(RVA = "0xADEB90", Offset = "0xADDB90", VA = "0x180ADEB90")]
|
||||
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: 0x170003E9 RID: 1001
|
||||
// (get) Token: 0x06001326 RID: 4902 RVA: 0x00008B38 File Offset: 0x00006D38
|
||||
[Token(Token = "0x170003E9")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x6001326")]
|
||||
[Address(RVA = "0x5AB2E0", Offset = "0x5AA2E0", VA = "0x1805AB2E0", 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: 0x170003EA RID: 1002
|
||||
// (get) Token: 0x06001327 RID: 4903 RVA: 0x00008B50 File Offset: 0x00006D50
|
||||
[Token(Token = "0x170003EA")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x6001327")]
|
||||
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", 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: 0x170003EB RID: 1003
|
||||
// (get) Token: 0x06001328 RID: 4904 RVA: 0x00008B68 File Offset: 0x00006D68
|
||||
[Token(Token = "0x170003EB")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x6001328")]
|
||||
[Address(RVA = "0x8920D0", Offset = "0x8910D0", VA = "0x1808920D0", 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: 0x170003EC RID: 1004
|
||||
// (get) Token: 0x06001329 RID: 4905 RVA: 0x00008B80 File Offset: 0x00006D80
|
||||
[Token(Token = "0x170003EC")]
|
||||
public override int ReadTimeout
|
||||
{
|
||||
[Token(Token = "0x6001329")]
|
||||
[Address(RVA = "0xADEFD0", Offset = "0xADDFD0", VA = "0x180ADEFD0", 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: 0x170003ED RID: 1005
|
||||
// (get) Token: 0x0600132A RID: 4906 RVA: 0x00008B98 File Offset: 0x00006D98
|
||||
[Token(Token = "0x170003ED")]
|
||||
public override int WriteTimeout
|
||||
{
|
||||
[Token(Token = "0x600132A")]
|
||||
[Address(RVA = "0xADF060", Offset = "0xADE060", VA = "0x180ADF060", 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: 0x170003EE RID: 1006
|
||||
// (get) Token: 0x0600132B RID: 4907 RVA: 0x00008BB0 File Offset: 0x00006DB0
|
||||
[Token(Token = "0x170003EE")]
|
||||
public virtual bool DataAvailable
|
||||
{
|
||||
[Token(Token = "0x600132B")]
|
||||
[Address(RVA = "0xADED20", Offset = "0xADDD20", VA = "0x180ADED20", 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: 0x170003EF RID: 1007
|
||||
// (get) Token: 0x0600132C RID: 4908 RVA: 0x00008BC8 File Offset: 0x00006DC8
|
||||
[Token(Token = "0x170003EF")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x600132C")]
|
||||
[Address(RVA = "0xADEEF0", Offset = "0xADDEF0", VA = "0x180ADEEF0", 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: 0x170003F0 RID: 1008
|
||||
// (get) Token: 0x0600132D RID: 4909 RVA: 0x00008BE0 File Offset: 0x00006DE0
|
||||
// (set) Token: 0x0600132E RID: 4910 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003F0")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x600132D")]
|
||||
[Address(RVA = "0xADEF60", Offset = "0xADDF60", VA = "0x180ADEF60", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x600132E")]
|
||||
[Address(RVA = "0xADF0F0", Offset = "0xADE0F0", VA = "0x180ADF0F0", 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: 0x0600132F RID: 4911 RVA: 0x00008BF8 File Offset: 0x00006DF8
|
||||
[Token(Token = "0x600132F")]
|
||||
[Address(RVA = "0xADE1A0", Offset = "0xADD1A0", VA = "0x180ADE1A0", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
// Token: 0x06001330 RID: 4912 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001330")]
|
||||
[Address(RVA = "0xADDCB0", Offset = "0xADCCB0", VA = "0x180ADDCB0")]
|
||||
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: 0x06001331 RID: 4913 RVA: 0x00008C10 File Offset: 0x00006E10
|
||||
[Token(Token = "0x6001331")]
|
||||
[Address(RVA = "0xADDE10", Offset = "0xADCE10", VA = "0x180ADDE10", 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: 0x06001332 RID: 4914 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001332")]
|
||||
[Address(RVA = "0xADE800", Offset = "0xADD800", VA = "0x180ADE800", 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: 0x06001333 RID: 4915 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001333")]
|
||||
[Address(RVA = "0xADD5E0", Offset = "0xADC5E0", VA = "0x180ADD5E0", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
|
||||
// Token: 0x06001334 RID: 4916 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001334")]
|
||||
[Address(RVA = "0xADDBE0", Offset = "0xADCBE0", VA = "0x180ADDBE0", 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: 0x06001335 RID: 4917 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001335")]
|
||||
[Address(RVA = "0xADCEA0", Offset = "0xADBEA0", VA = "0x180ADCEA0", Slot = "19")]
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001336 RID: 4918 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001336")]
|
||||
[Address(RVA = "0xADE280", Offset = "0xADD280", VA = "0x180ADE280", 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: 0x06001337 RID: 4919 RVA: 0x00008C28 File Offset: 0x00006E28
|
||||
[Token(Token = "0x6001337")]
|
||||
[Address(RVA = "0xADD6C0", Offset = "0xADC6C0", VA = "0x180ADD6C0", 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: 0x06001338 RID: 4920 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001338")]
|
||||
[Address(RVA = "0xADD240", Offset = "0xADC240", VA = "0x180ADD240", Slot = "22")]
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001339 RID: 4921 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001339")]
|
||||
[Address(RVA = "0xADE520", Offset = "0xADD520", VA = "0x180ADE520", 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: 0x0600133A RID: 4922 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133A")]
|
||||
[Address(RVA = "0xADD950", Offset = "0xADC950", VA = "0x180ADD950", Slot = "23")]
|
||||
public override void EndWrite(IAsyncResult asyncResult)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Flushes data from the stream. This method is reserved for future use.</summary>
|
||||
// Token: 0x0600133B RID: 4923 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133B")]
|
||||
[Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", 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: 0x0600133C RID: 4924 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600133C")]
|
||||
[Address(RVA = "0xADDC60", Offset = "0xADCC60", VA = "0x180ADDC60", 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: 0x0600133D RID: 4925 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133D")]
|
||||
[Address(RVA = "0xADE210", Offset = "0xADD210", VA = "0x180ADE210", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000BB4 RID: 2996
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000BB4")]
|
||||
private Socket m_StreamSocket;
|
||||
|
||||
// Token: 0x04000BB5 RID: 2997
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000BB5")]
|
||||
private bool m_Readable;
|
||||
|
||||
// Token: 0x04000BB6 RID: 2998
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x31")]
|
||||
[Token(Token = "0x4000BB6")]
|
||||
private bool m_Writeable;
|
||||
|
||||
// Token: 0x04000BB7 RID: 2999
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x32")]
|
||||
[Token(Token = "0x4000BB7")]
|
||||
private bool m_OwnsSocket;
|
||||
|
||||
// Token: 0x04000BB8 RID: 3000
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4000BB8")]
|
||||
private int m_CloseTimeout;
|
||||
|
||||
// Token: 0x04000BB9 RID: 3001
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000BB9")]
|
||||
private bool m_CleanedUp;
|
||||
|
||||
// Token: 0x04000BBA RID: 3002
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4000BBA")]
|
||||
private int m_CurrentReadTimeout;
|
||||
|
||||
// Token: 0x04000BBB RID: 3003
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000BBB")]
|
||||
private int m_CurrentWriteTimeout;
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D9 RID: 729
|
||||
[Token(Token = "0x20002D9")]
|
||||
public enum ProtocolType
|
||||
{
|
||||
/// <summary>Internet Protocol.</summary>
|
||||
// Token: 0x04000BBD RID: 3005
|
||||
[Token(Token = "0x4000BBD")]
|
||||
IP,
|
||||
/// <summary>IPv6 Hop by Hop Options header.</summary>
|
||||
// Token: 0x04000BBE RID: 3006
|
||||
[Token(Token = "0x4000BBE")]
|
||||
IPv6HopByHopOptions = 0,
|
||||
/// <summary>Internet Control Message Protocol.</summary>
|
||||
// Token: 0x04000BBF RID: 3007
|
||||
[Token(Token = "0x4000BBF")]
|
||||
Icmp,
|
||||
/// <summary>Internet Group Management Protocol.</summary>
|
||||
// Token: 0x04000BC0 RID: 3008
|
||||
[Token(Token = "0x4000BC0")]
|
||||
Igmp,
|
||||
/// <summary>Gateway To Gateway Protocol.</summary>
|
||||
// Token: 0x04000BC1 RID: 3009
|
||||
[Token(Token = "0x4000BC1")]
|
||||
Ggp,
|
||||
/// <summary>Internet Protocol version 4.</summary>
|
||||
// Token: 0x04000BC2 RID: 3010
|
||||
[Token(Token = "0x4000BC2")]
|
||||
IPv4,
|
||||
/// <summary>Transmission Control Protocol.</summary>
|
||||
// Token: 0x04000BC3 RID: 3011
|
||||
[Token(Token = "0x4000BC3")]
|
||||
Tcp = 6,
|
||||
/// <summary>PARC Universal Packet Protocol.</summary>
|
||||
// Token: 0x04000BC4 RID: 3012
|
||||
[Token(Token = "0x4000BC4")]
|
||||
Pup = 12,
|
||||
/// <summary>User Datagram Protocol.</summary>
|
||||
// Token: 0x04000BC5 RID: 3013
|
||||
[Token(Token = "0x4000BC5")]
|
||||
Udp = 17,
|
||||
/// <summary>Internet Datagram Protocol.</summary>
|
||||
// Token: 0x04000BC6 RID: 3014
|
||||
[Token(Token = "0x4000BC6")]
|
||||
Idp = 22,
|
||||
/// <summary>Internet Protocol version 6 (IPv6).</summary>
|
||||
// Token: 0x04000BC7 RID: 3015
|
||||
[Token(Token = "0x4000BC7")]
|
||||
IPv6 = 41,
|
||||
/// <summary>IPv6 Routing header.</summary>
|
||||
// Token: 0x04000BC8 RID: 3016
|
||||
[Token(Token = "0x4000BC8")]
|
||||
IPv6RoutingHeader = 43,
|
||||
/// <summary>IPv6 Fragment header.</summary>
|
||||
// Token: 0x04000BC9 RID: 3017
|
||||
[Token(Token = "0x4000BC9")]
|
||||
IPv6FragmentHeader,
|
||||
/// <summary>IPv6 Encapsulating Security Payload header.</summary>
|
||||
// Token: 0x04000BCA RID: 3018
|
||||
[Token(Token = "0x4000BCA")]
|
||||
IPSecEncapsulatingSecurityPayload = 50,
|
||||
/// <summary>IPv6 Authentication header. For details, see RFC 2292 section 2.2.1, available at https://www.ietf.org.</summary>
|
||||
// Token: 0x04000BCB RID: 3019
|
||||
[Token(Token = "0x4000BCB")]
|
||||
IPSecAuthenticationHeader,
|
||||
/// <summary>Internet Control Message Protocol for IPv6.</summary>
|
||||
// Token: 0x04000BCC RID: 3020
|
||||
[Token(Token = "0x4000BCC")]
|
||||
IcmpV6 = 58,
|
||||
/// <summary>IPv6 No next header.</summary>
|
||||
// Token: 0x04000BCD RID: 3021
|
||||
[Token(Token = "0x4000BCD")]
|
||||
IPv6NoNextHeader,
|
||||
/// <summary>IPv6 Destination Options header.</summary>
|
||||
// Token: 0x04000BCE RID: 3022
|
||||
[Token(Token = "0x4000BCE")]
|
||||
IPv6DestinationOptions,
|
||||
/// <summary>Net Disk Protocol (unofficial).</summary>
|
||||
// Token: 0x04000BCF RID: 3023
|
||||
[Token(Token = "0x4000BCF")]
|
||||
ND = 77,
|
||||
/// <summary>Raw IP packet protocol.</summary>
|
||||
// Token: 0x04000BD0 RID: 3024
|
||||
[Token(Token = "0x4000BD0")]
|
||||
Raw = 255,
|
||||
/// <summary>Unspecified protocol.</summary>
|
||||
// Token: 0x04000BD1 RID: 3025
|
||||
[Token(Token = "0x4000BD1")]
|
||||
Unspecified = 0,
|
||||
/// <summary>Internet Packet Exchange Protocol.</summary>
|
||||
// Token: 0x04000BD2 RID: 3026
|
||||
[Token(Token = "0x4000BD2")]
|
||||
Ipx = 1000,
|
||||
/// <summary>Sequenced Packet Exchange protocol.</summary>
|
||||
// Token: 0x04000BD3 RID: 3027
|
||||
[Token(Token = "0x4000BD3")]
|
||||
Spx = 1256,
|
||||
/// <summary>Sequenced Packet Exchange version 2 protocol.</summary>
|
||||
// Token: 0x04000BD4 RID: 3028
|
||||
[Token(Token = "0x4000BD4")]
|
||||
SpxII,
|
||||
/// <summary>Unknown protocol.</summary>
|
||||
// Token: 0x04000BD5 RID: 3029
|
||||
[Token(Token = "0x4000BD5")]
|
||||
Unknown = -1
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002E8 RID: 744
|
||||
[Token(Token = "0x20002E8")]
|
||||
internal sealed class SafeSocketHandle : SafeHandleZeroOrMinusOneIsInvalid
|
||||
{
|
||||
// Token: 0x060013FA RID: 5114 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013FA")]
|
||||
[Address(RVA = "0xADFA40", Offset = "0xADEA40", VA = "0x180ADFA40")]
|
||||
public SafeSocketHandle(IntPtr preexistingHandle, bool ownsHandle)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013FB RID: 5115 RVA: 0x000091E0 File Offset: 0x000073E0
|
||||
[Token(Token = "0x60013FB")]
|
||||
[Address(RVA = "0xADF3C0", Offset = "0xADE3C0", VA = "0x180ADF3C0", Slot = "7")]
|
||||
protected override bool ReleaseHandle()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060013FC RID: 5116 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013FC")]
|
||||
[Address(RVA = "0xADF180", Offset = "0xADE180", VA = "0x180ADF180")]
|
||||
public void RegisterForBlockingSyscall()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013FD RID: 5117 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013FD")]
|
||||
[Address(RVA = "0xADF870", Offset = "0xADE870", VA = "0x180ADF870")]
|
||||
public void UnRegisterForBlockingSyscall()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000C8F RID: 3215
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000C8F")]
|
||||
private List<Thread> blocking_threads;
|
||||
|
||||
// Token: 0x04000C90 RID: 3216
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000C90")]
|
||||
private Dictionary<Thread, StackTrace> threads_stacktraces;
|
||||
|
||||
// Token: 0x04000C91 RID: 3217
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000C91")]
|
||||
private bool in_cleanup;
|
||||
|
||||
// Token: 0x04000C92 RID: 3218
|
||||
[Token(Token = "0x4000C92")]
|
||||
private const int SOCKET_CLOSED = 10004;
|
||||
|
||||
// Token: 0x04000C93 RID: 3219
|
||||
[Token(Token = "0x4000C93")]
|
||||
private const int ABORT_RETRIES = 10;
|
||||
|
||||
// Token: 0x04000C94 RID: 3220
|
||||
[Token(Token = "0x4000C94")]
|
||||
private static bool THROW_ON_ABORT_RETRIES;
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002DA RID: 730
|
||||
[Token(Token = "0x20002DA")]
|
||||
public enum SelectMode
|
||||
{
|
||||
/// <summary>Read status mode.</summary>
|
||||
// Token: 0x04000BD7 RID: 3031
|
||||
[Token(Token = "0x4000BD7")]
|
||||
SelectRead,
|
||||
/// <summary>Write status mode.</summary>
|
||||
// Token: 0x04000BD8 RID: 3032
|
||||
[Token(Token = "0x4000BD8")]
|
||||
SelectWrite,
|
||||
/// <summary>Error status mode.</summary>
|
||||
// Token: 0x04000BD9 RID: 3033
|
||||
[Token(Token = "0x4000BD9")]
|
||||
SelectError
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002DB RID: 731
|
||||
[Token(Token = "0x20002DB")]
|
||||
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: 0x0600133E RID: 4926 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133E")]
|
||||
[Address(RVA = "0xAE9130", Offset = "0xAE8130", VA = "0x180AE9130")]
|
||||
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: 0x170003F1 RID: 1009
|
||||
// (get) Token: 0x0600133F RID: 4927 RVA: 0x00008C40 File Offset: 0x00006E40
|
||||
[Token(Token = "0x170003F1")]
|
||||
[Obsolete]
|
||||
public static bool SupportsIPv4
|
||||
{
|
||||
[Token(Token = "0x600133F")]
|
||||
[Address(RVA = "0xAE9CA0", Offset = "0xAE8CA0", VA = "0x180AE9CA0")]
|
||||
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: 0x170003F2 RID: 1010
|
||||
// (get) Token: 0x06001340 RID: 4928 RVA: 0x00008C58 File Offset: 0x00006E58
|
||||
[Token(Token = "0x170003F2")]
|
||||
public static bool OSSupportsIPv4
|
||||
{
|
||||
[Token(Token = "0x6001340")]
|
||||
[Address(RVA = "0xAE9AC0", Offset = "0xAE8AC0", VA = "0x180AE9AC0")]
|
||||
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: 0x170003F3 RID: 1011
|
||||
// (get) Token: 0x06001341 RID: 4929 RVA: 0x00008C70 File Offset: 0x00006E70
|
||||
[Token(Token = "0x170003F3")]
|
||||
[Obsolete]
|
||||
public static bool SupportsIPv6
|
||||
{
|
||||
[Token(Token = "0x6001341")]
|
||||
[Address(RVA = "0xAE9D10", Offset = "0xAE8D10", VA = "0x180AE9D10")]
|
||||
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: 0x170003F4 RID: 1012
|
||||
// (get) Token: 0x06001342 RID: 4930 RVA: 0x00008C88 File Offset: 0x00006E88
|
||||
[Token(Token = "0x170003F4")]
|
||||
public static bool OSSupportsIPv6
|
||||
{
|
||||
[Token(Token = "0x6001342")]
|
||||
[Address(RVA = "0xAE9B30", Offset = "0xAE8B30", VA = "0x180AE9B30")]
|
||||
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: 0x170003F5 RID: 1013
|
||||
// (get) Token: 0x06001343 RID: 4931 RVA: 0x00008CA0 File Offset: 0x00006EA0
|
||||
[Token(Token = "0x170003F5")]
|
||||
public IntPtr Handle
|
||||
{
|
||||
[Token(Token = "0x6001343")]
|
||||
[Address(RVA = "0xAE97E0", Offset = "0xAE87E0", VA = "0x180AE97E0")]
|
||||
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: 0x170003F6 RID: 1014
|
||||
// (get) Token: 0x06001344 RID: 4932 RVA: 0x00008CB8 File Offset: 0x00006EB8
|
||||
[Token(Token = "0x170003F6")]
|
||||
public AddressFamily AddressFamily
|
||||
{
|
||||
[Token(Token = "0x6001344")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
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: 0x170003F7 RID: 1015
|
||||
// (get) Token: 0x06001345 RID: 4933 RVA: 0x00008CD0 File Offset: 0x00006ED0
|
||||
[Token(Token = "0x170003F7")]
|
||||
public SocketType SocketType
|
||||
{
|
||||
[Token(Token = "0x6001345")]
|
||||
[Address(RVA = "0x497590", Offset = "0x496590", VA = "0x180497590")]
|
||||
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: 0x170003F8 RID: 1016
|
||||
// (get) Token: 0x06001346 RID: 4934 RVA: 0x00008CE8 File Offset: 0x00006EE8
|
||||
[Token(Token = "0x170003F8")]
|
||||
public ProtocolType ProtocolType
|
||||
{
|
||||
[Token(Token = "0x6001346")]
|
||||
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
|
||||
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: 0x170003F9 RID: 1017
|
||||
// (get) Token: 0x06001347 RID: 4935 RVA: 0x00008D00 File Offset: 0x00006F00
|
||||
// (set) Token: 0x06001348 RID: 4936 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003F9")]
|
||||
public bool ExclusiveAddressUse
|
||||
{
|
||||
[Token(Token = "0x6001347")]
|
||||
[Address(RVA = "0xAE9600", Offset = "0xAE8600", VA = "0x180AE9600")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x6001348")]
|
||||
[Address(RVA = "0xAE9F80", Offset = "0xAE8F80", VA = "0x180AE9F80")]
|
||||
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: 0x170003FA RID: 1018
|
||||
// (set) Token: 0x06001349 RID: 4937 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003FA")]
|
||||
public int ReceiveTimeout
|
||||
{
|
||||
[Token(Token = "0x6001349")]
|
||||
[Address(RVA = "0xAEA0B0", Offset = "0xAE90B0", VA = "0x180AEA0B0")]
|
||||
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: 0x170003FB RID: 1019
|
||||
// (set) Token: 0x0600134A RID: 4938 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003FB")]
|
||||
public int SendTimeout
|
||||
{
|
||||
[Token(Token = "0x600134A")]
|
||||
[Address(RVA = "0xAEA150", Offset = "0xAE9150", VA = "0x180AEA150")]
|
||||
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: 0x170003FC RID: 1020
|
||||
// (set) Token: 0x0600134B RID: 4939 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003FC")]
|
||||
public bool DontFragment
|
||||
{
|
||||
[Token(Token = "0x600134B")]
|
||||
[Address(RVA = "0xAE9E40", Offset = "0xAE8E40", VA = "0x180AE9E40")]
|
||||
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: 0x170003FD RID: 1021
|
||||
// (get) Token: 0x0600134C RID: 4940 RVA: 0x00008D18 File Offset: 0x00006F18
|
||||
// (set) Token: 0x0600134D RID: 4941 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003FD")]
|
||||
public bool DualMode
|
||||
{
|
||||
[Token(Token = "0x600134C")]
|
||||
[Address(RVA = "0xAE9540", Offset = "0xAE8540", VA = "0x180AE9540")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x600134D")]
|
||||
[Address(RVA = "0xAE9EE0", Offset = "0xAE8EE0", VA = "0x180AE9EE0")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170003FE RID: 1022
|
||||
// (get) Token: 0x0600134E RID: 4942 RVA: 0x00008D30 File Offset: 0x00006F30
|
||||
[Token(Token = "0x170003FE")]
|
||||
private bool IsDualMode
|
||||
{
|
||||
[Token(Token = "0x600134E")]
|
||||
[Address(RVA = "0xAE9900", Offset = "0xAE8900", VA = "0x180AE9900")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600134F RID: 4943 RVA: 0x00008D48 File Offset: 0x00006F48
|
||||
[Token(Token = "0x600134F")]
|
||||
[Address(RVA = "0xAE3980", Offset = "0xAE2980", VA = "0x180AE3980")]
|
||||
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: 0x06001350 RID: 4944 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001350")]
|
||||
[Address(RVA = "0xAE3BA0", Offset = "0xAE2BA0", VA = "0x180AE3BA0")]
|
||||
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: 0x06001351 RID: 4945 RVA: 0x00008D60 File Offset: 0x00006F60
|
||||
[Token(Token = "0x6001351")]
|
||||
[Address(RVA = "0xAE7850", Offset = "0xAE6850", VA = "0x180AE7850")]
|
||||
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: 0x06001352 RID: 4946 RVA: 0x00008D78 File Offset: 0x00006F78
|
||||
[Token(Token = "0x6001352")]
|
||||
[Address(RVA = "0xAE7600", Offset = "0xAE6600", VA = "0x180AE7600")]
|
||||
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: 0x06001353 RID: 4947 RVA: 0x00008D90 File Offset: 0x00006F90
|
||||
[Token(Token = "0x6001353")]
|
||||
[Address(RVA = "0xAE7890", Offset = "0xAE6890", VA = "0x180AE7890")]
|
||||
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: 0x06001354 RID: 4948 RVA: 0x00008DA8 File Offset: 0x00006FA8
|
||||
[Token(Token = "0x6001354")]
|
||||
[Address(RVA = "0xAE6A60", Offset = "0xAE5A60", VA = "0x180AE6A60")]
|
||||
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: 0x06001355 RID: 4949 RVA: 0x00008DC0 File Offset: 0x00006FC0
|
||||
[Token(Token = "0x6001355")]
|
||||
[Address(RVA = "0xAE70C0", Offset = "0xAE60C0", VA = "0x180AE70C0")]
|
||||
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: 0x06001356 RID: 4950 RVA: 0x00008DD8 File Offset: 0x00006FD8
|
||||
[Token(Token = "0x6001356")]
|
||||
[Address(RVA = "0xAE7100", Offset = "0xAE6100", VA = "0x180AE7100")]
|
||||
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: 0x06001357 RID: 4951 RVA: 0x00008DF0 File Offset: 0x00006FF0
|
||||
[Token(Token = "0x6001357")]
|
||||
[Address(RVA = "0xAE6AA0", Offset = "0xAE5AA0", VA = "0x180AE6AA0")]
|
||||
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: 0x06001358 RID: 4952 RVA: 0x00008E08 File Offset: 0x00007008
|
||||
[Token(Token = "0x6001358")]
|
||||
[Address(RVA = "0xAE5570", Offset = "0xAE4570", VA = "0x180AE5570")]
|
||||
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: 0x06001359 RID: 4953 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001359")]
|
||||
[Address(RVA = "0xAE7ED0", Offset = "0xAE6ED0", VA = "0x180AE7ED0")]
|
||||
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: 0x0600135A RID: 4954 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600135A")]
|
||||
[Address(RVA = "0xAE2050", Offset = "0xAE1050", VA = "0x180AE2050")]
|
||||
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: 0x0600135B RID: 4955 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600135B")]
|
||||
[Address(RVA = "0xAE32A0", Offset = "0xAE22A0", VA = "0x180AE32A0")]
|
||||
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: 0x0600135C RID: 4956 RVA: 0x00008E20 File Offset: 0x00007020
|
||||
[Token(Token = "0x600135C")]
|
||||
[Address(RVA = "0xAE4F60", Offset = "0xAE3F60", VA = "0x180AE4F60")]
|
||||
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: 0x0600135D RID: 4957 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600135D")]
|
||||
[Address(RVA = "0xAE2940", Offset = "0xAE1940", VA = "0x180AE2940")]
|
||||
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: 0x0600135E RID: 4958 RVA: 0x00008E38 File Offset: 0x00007038
|
||||
[Token(Token = "0x600135E")]
|
||||
[Address(RVA = "0xAE4CB0", Offset = "0xAE3CB0", VA = "0x180AE4CB0")]
|
||||
public int EndReceive(IAsyncResult asyncResult)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x170003FF RID: 1023
|
||||
// (get) Token: 0x0600135F RID: 4959 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170003FF")]
|
||||
private static object InternalSyncObject
|
||||
{
|
||||
[Token(Token = "0x600135F")]
|
||||
[Address(RVA = "0xAE9800", Offset = "0xAE8800", VA = "0x180AE9800")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17000400 RID: 1024
|
||||
// (get) Token: 0x06001360 RID: 4960 RVA: 0x00008E50 File Offset: 0x00007050
|
||||
[Token(Token = "0x17000400")]
|
||||
internal bool CleanedUp
|
||||
{
|
||||
[Token(Token = "0x6001360")]
|
||||
[Address(RVA = "0xAE9530", Offset = "0xAE8530", VA = "0x180AE9530")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001361 RID: 4961 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001361")]
|
||||
[Address(RVA = "0xAE5850", Offset = "0xAE4850", VA = "0x180AE5850")]
|
||||
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: 0x06001362 RID: 4962 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001362")]
|
||||
[Address(RVA = "0xAE4770", Offset = "0xAE3770", VA = "0x180AE4770", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.Socket" /> class.</summary>
|
||||
// Token: 0x06001363 RID: 4963 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001363")]
|
||||
[Address(RVA = "0xAE5080", Offset = "0xAE4080", VA = "0x180AE5080", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001364 RID: 4964 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001364")]
|
||||
[Address(RVA = "0xAE5BF0", Offset = "0xAE4BF0", VA = "0x180AE5BF0")]
|
||||
internal void InternalShutdown(SocketShutdown how)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001365 RID: 4965 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001365")]
|
||||
[Address(RVA = "0xAE8A70", Offset = "0xAE7A70", VA = "0x180AE8A70")]
|
||||
internal IAsyncResult UnsafeBeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001366 RID: 4966 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001366")]
|
||||
[Address(RVA = "0xAE8A60", Offset = "0xAE7A60", VA = "0x180AE8A60")]
|
||||
internal IAsyncResult UnsafeBeginReceive(byte[] buffer, int offset, int size, SocketFlags socketFlags, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001367 RID: 4967 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001367")]
|
||||
[Address(RVA = "0xAE9030", Offset = "0xAE8030", VA = "0x180AE9030")]
|
||||
internal Socket(AddressFamily family, SocketType type, ProtocolType proto, SafeSocketHandle safe_handle)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001368 RID: 4968 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001368")]
|
||||
[Address(RVA = "0xAE8630", Offset = "0xAE7630", VA = "0x180AE8630")]
|
||||
private void SocketDefaults()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001369 RID: 4969 RVA: 0x00008E68 File Offset: 0x00007068
|
||||
[Token(Token = "0x6001369")]
|
||||
[Address(RVA = "0xAE87A0", Offset = "0xAE77A0", VA = "0x180AE87A0")]
|
||||
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: 0x17000401 RID: 1025
|
||||
// (get) Token: 0x0600136A RID: 4970 RVA: 0x00008E80 File Offset: 0x00007080
|
||||
[Token(Token = "0x17000401")]
|
||||
public int Available
|
||||
{
|
||||
[Token(Token = "0x600136A")]
|
||||
[Address(RVA = "0xAE9480", Offset = "0xAE8480", VA = "0x180AE9480")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600136B RID: 4971 RVA: 0x00008E98 File Offset: 0x00007098
|
||||
[Token(Token = "0x600136B")]
|
||||
[Address(RVA = "0xAE1BB0", Offset = "0xAE0BB0", VA = "0x180AE1BB0")]
|
||||
private static int Available_internal(SafeSocketHandle safeHandle, out int error)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600136C RID: 4972 RVA: 0x00008EB0 File Offset: 0x000070B0
|
||||
[Token(Token = "0x600136C")]
|
||||
[Address(RVA = "0xAE1CB0", Offset = "0xAE0CB0", VA = "0x180AE1CB0")]
|
||||
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: 0x17000402 RID: 1026
|
||||
// (get) Token: 0x0600136D RID: 4973 RVA: 0x00008EC8 File Offset: 0x000070C8
|
||||
[Token(Token = "0x17000402")]
|
||||
public bool IsBound
|
||||
{
|
||||
[Token(Token = "0x600136D")]
|
||||
[Address(RVA = "0x4B4FF0", Offset = "0x4B3FF0", VA = "0x1804B4FF0")]
|
||||
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: 0x17000403 RID: 1027
|
||||
// (get) Token: 0x0600136E RID: 4974 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000403")]
|
||||
public EndPoint LocalEndPoint
|
||||
{
|
||||
[Token(Token = "0x600136E")]
|
||||
[Address(RVA = "0xAE99D0", Offset = "0xAE89D0", VA = "0x180AE99D0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600136F RID: 4975 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600136F")]
|
||||
[Address(RVA = "0xAE6050", Offset = "0xAE5050", VA = "0x180AE6050")]
|
||||
private static SocketAddress LocalEndPoint_internal(SafeSocketHandle safeHandle, int family, out int error)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001370 RID: 4976 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001370")]
|
||||
[Address(RVA = "0xAE6160", Offset = "0xAE5160", VA = "0x180AE6160")]
|
||||
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: 0x17000404 RID: 1028
|
||||
// (get) Token: 0x06001371 RID: 4977 RVA: 0x00008EE0 File Offset: 0x000070E0
|
||||
// (set) Token: 0x06001372 RID: 4978 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000404")]
|
||||
public bool Blocking
|
||||
{
|
||||
[Token(Token = "0x6001371")]
|
||||
[Address(RVA = "0x42EBF0", Offset = "0x42DBF0", VA = "0x18042EBF0")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
[Token(Token = "0x6001372")]
|
||||
[Address(RVA = "0xAE9D80", Offset = "0xAE8D80", VA = "0x180AE9D80")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001373 RID: 4979 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001373")]
|
||||
[Address(RVA = "0xAE3870", Offset = "0xAE2870", VA = "0x180AE3870")]
|
||||
private static void Blocking_internal(SafeSocketHandle safeHandle, bool block, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001374 RID: 4980 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001374")]
|
||||
[Address(RVA = "0xAE3970", Offset = "0xAE2970", VA = "0x180AE3970")]
|
||||
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: 0x17000405 RID: 1029
|
||||
// (get) Token: 0x06001375 RID: 4981 RVA: 0x00008EF8 File Offset: 0x000070F8
|
||||
[Token(Token = "0x17000405")]
|
||||
public bool Connected
|
||||
{
|
||||
[Token(Token = "0x6001375")]
|
||||
[Address(RVA = "0x4B4FE0", Offset = "0x4B3FE0", VA = "0x1804B4FE0")]
|
||||
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: 0x17000406 RID: 1030
|
||||
// (set) Token: 0x06001376 RID: 4982 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000406")]
|
||||
public bool NoDelay
|
||||
{
|
||||
[Token(Token = "0x6001376")]
|
||||
[Address(RVA = "0xAEA020", Offset = "0xAE9020", VA = "0x180AEA020")]
|
||||
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: 0x17000407 RID: 1031
|
||||
// (get) Token: 0x06001377 RID: 4983 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x17000407")]
|
||||
public EndPoint RemoteEndPoint
|
||||
{
|
||||
[Token(Token = "0x6001377")]
|
||||
[Address(RVA = "0xAE9BA0", Offset = "0xAE8BA0", VA = "0x180AE9BA0")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001378 RID: 4984 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001378")]
|
||||
[Address(RVA = "0xAE7290", Offset = "0xAE6290", VA = "0x180AE7290")]
|
||||
private static SocketAddress RemoteEndPoint_internal(SafeSocketHandle safeHandle, int family, out int error)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001379 RID: 4985 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001379")]
|
||||
[Address(RVA = "0xAE7280", Offset = "0xAE6280", VA = "0x180AE7280")]
|
||||
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: 0x0600137A RID: 4986 RVA: 0x00008F10 File Offset: 0x00007110
|
||||
[Token(Token = "0x600137A")]
|
||||
[Address(RVA = "0xAE62A0", Offset = "0xAE52A0", VA = "0x180AE62A0")]
|
||||
public bool Poll(int microSeconds, SelectMode mode)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600137B RID: 4987 RVA: 0x00008F28 File Offset: 0x00007128
|
||||
[Token(Token = "0x600137B")]
|
||||
[Address(RVA = "0xAE6180", Offset = "0xAE5180", VA = "0x180AE6180")]
|
||||
private static bool Poll_internal(SafeSocketHandle safeHandle, SelectMode mode, int timeout, out int error)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600137C RID: 4988 RVA: 0x00008F40 File Offset: 0x00007140
|
||||
[Token(Token = "0x600137C")]
|
||||
[Address(RVA = "0xAE6170", Offset = "0xAE5170", VA = "0x180AE6170")]
|
||||
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: 0x0600137D RID: 4989 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600137D")]
|
||||
[Address(RVA = "0xAE1A70", Offset = "0xAE0A70", VA = "0x180AE1A70")]
|
||||
public Socket Accept()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600137E RID: 4990 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600137E")]
|
||||
[Address(RVA = "0xAE1950", Offset = "0xAE0950", VA = "0x180AE1950")]
|
||||
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: 0x0600137F RID: 4991 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600137F")]
|
||||
[Address(RVA = "0xAE1CC0", Offset = "0xAE0CC0", VA = "0x180AE1CC0")]
|
||||
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: 0x06001380 RID: 4992 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001380")]
|
||||
[Address(RVA = "0xAE48C0", Offset = "0xAE38C0", VA = "0x180AE48C0")]
|
||||
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: 0x06001381 RID: 4993 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001381")]
|
||||
[Address(RVA = "0xAE47E0", Offset = "0xAE37E0", VA = "0x180AE47E0")]
|
||||
public Socket EndAccept(out byte[] buffer, out int bytesTransferred, IAsyncResult asyncResult)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001382 RID: 4994 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001382")]
|
||||
[Address(RVA = "0xAE1820", Offset = "0xAE0820", VA = "0x180AE1820")]
|
||||
private static SafeSocketHandle Accept_internal(SafeSocketHandle safeHandle, out int error, bool blocking)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001383 RID: 4995 RVA: 0x00008F58 File Offset: 0x00007158
|
||||
[Token(Token = "0x6001383")]
|
||||
[Address(RVA = "0xAE1810", Offset = "0xAE0810", VA = "0x180AE1810")]
|
||||
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: 0x06001384 RID: 4996 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001384")]
|
||||
[Address(RVA = "0xAE36F0", Offset = "0xAE26F0", VA = "0x180AE36F0")]
|
||||
public void Bind(EndPoint localEP)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001385 RID: 4997 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001385")]
|
||||
[Address(RVA = "0xAE35E0", Offset = "0xAE25E0", VA = "0x180AE35E0")]
|
||||
private static void Bind_internal(SafeSocketHandle safeHandle, SocketAddress sa, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001386 RID: 4998 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001386")]
|
||||
[Address(RVA = "0xAE36E0", Offset = "0xAE26E0", VA = "0x180AE36E0")]
|
||||
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: 0x06001387 RID: 4999 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001387")]
|
||||
[Address(RVA = "0xAE5F50", Offset = "0xAE4F50", VA = "0x180AE5F50")]
|
||||
public void Listen(int backlog)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001388 RID: 5000 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001388")]
|
||||
[Address(RVA = "0xAE5E50", Offset = "0xAE4E50", VA = "0x180AE5E50")]
|
||||
private static void Listen_internal(SafeSocketHandle safeHandle, int backlog, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001389 RID: 5001 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001389")]
|
||||
[Address(RVA = "0xAE5E40", Offset = "0xAE4E40", VA = "0x180AE5E40")]
|
||||
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: 0x0600138A RID: 5002 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600138A")]
|
||||
[Address(RVA = "0xAE4330", Offset = "0xAE3330", VA = "0x180AE4330")]
|
||||
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: 0x0600138B RID: 5003 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600138B")]
|
||||
[Address(RVA = "0xAE42F0", Offset = "0xAE32F0", VA = "0x180AE42F0")]
|
||||
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: 0x0600138C RID: 5004 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600138C")]
|
||||
[Address(RVA = "0xAE3F40", Offset = "0xAE2F40", VA = "0x180AE3F40")]
|
||||
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: 0x0600138D RID: 5005 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600138D")]
|
||||
[Address(RVA = "0xAE2360", Offset = "0xAE1360", VA = "0x180AE2360")]
|
||||
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: 0x0600138E RID: 5006 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600138E")]
|
||||
[Address(RVA = "0xAE24D0", Offset = "0xAE14D0", VA = "0x180AE24D0")]
|
||||
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: 0x0600138F RID: 5007 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600138F")]
|
||||
[Address(RVA = "0xAE1E50", Offset = "0xAE0E50", VA = "0x180AE1E50")]
|
||||
public IAsyncResult BeginConnect(IPAddress[] addresses, int port, AsyncCallback requestCallback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x06001390 RID: 5008 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001390")]
|
||||
[Address(RVA = "0xAE2600", Offset = "0xAE1600", VA = "0x180AE2600")]
|
||||
private static void BeginMConnect(SocketAsyncResult sockares)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001391 RID: 5009 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001391")]
|
||||
[Address(RVA = "0xAE2B30", Offset = "0xAE1B30", VA = "0x180AE2B30")]
|
||||
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: 0x06001392 RID: 5010 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001392")]
|
||||
[Address(RVA = "0xAE4970", Offset = "0xAE3970", VA = "0x180AE4970")]
|
||||
public void EndConnect(IAsyncResult asyncResult)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001393 RID: 5011 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001393")]
|
||||
[Address(RVA = "0xAE3AA0", Offset = "0xAE2AA0", VA = "0x180AE3AA0")]
|
||||
private static void Connect_internal(SafeSocketHandle safeHandle, SocketAddress sa, out int error, bool blocking)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001394 RID: 5012 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001394")]
|
||||
[Address(RVA = "0xAE3A90", Offset = "0xAE2A90", VA = "0x180AE3A90")]
|
||||
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: 0x06001395 RID: 5013 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001395")]
|
||||
[Address(RVA = "0xAE44C0", Offset = "0xAE34C0", VA = "0x180AE44C0")]
|
||||
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: 0x06001396 RID: 5014 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001396")]
|
||||
[Address(RVA = "0xAE4A20", Offset = "0xAE3A20", VA = "0x180AE4A20")]
|
||||
public void EndDisconnect(IAsyncResult asyncResult)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001397 RID: 5015 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001397")]
|
||||
[Address(RVA = "0xAE43B0", Offset = "0xAE33B0", VA = "0x180AE43B0")]
|
||||
private static void Disconnect_internal(SafeSocketHandle safeHandle, bool reuse, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001398 RID: 5016 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001398")]
|
||||
[Address(RVA = "0xAE44B0", Offset = "0xAE34B0", VA = "0x180AE44B0")]
|
||||
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: 0x06001399 RID: 5017 RVA: 0x00008F70 File Offset: 0x00007170
|
||||
[Token(Token = "0x6001399")]
|
||||
[Address(RVA = "0xAE6F50", Offset = "0xAE5F50", VA = "0x180AE6F50")]
|
||||
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: 0x0600139A RID: 5018 RVA: 0x00008F88 File Offset: 0x00007188
|
||||
[Token(Token = "0x600139A")]
|
||||
[Address(RVA = "0xAE6B40", Offset = "0xAE5B40", VA = "0x180AE6B40")]
|
||||
[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: 0x0600139B RID: 5019 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600139B")]
|
||||
[Address(RVA = "0xAE2750", Offset = "0xAE1750", VA = "0x180AE2750")]
|
||||
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: 0x0600139C RID: 5020 RVA: 0x00008FA0 File Offset: 0x000071A0
|
||||
[Token(Token = "0x600139C")]
|
||||
[Address(RVA = "0xAE4BD0", Offset = "0xAE3BD0", VA = "0x180AE4BD0")]
|
||||
public int EndReceive(IAsyncResult asyncResult, out SocketError errorCode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600139D RID: 5021 RVA: 0x00008FB8 File Offset: 0x000071B8
|
||||
[Token(Token = "0x600139D")]
|
||||
[Address(RVA = "0xAE6920", Offset = "0xAE5920", VA = "0x180AE6920")]
|
||||
private unsafe static int Receive_internal(SafeSocketHandle safeHandle, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600139E RID: 5022 RVA: 0x00008FD0 File Offset: 0x000071D0
|
||||
[Token(Token = "0x600139E")]
|
||||
[Address(RVA = "0xAE6A40", Offset = "0xAE5A40", VA = "0x180AE6A40")]
|
||||
private unsafe static int Receive_internal(IntPtr sock, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x0600139F RID: 5023 RVA: 0x00008FE8 File Offset: 0x000071E8
|
||||
[Token(Token = "0x600139F")]
|
||||
[Address(RVA = "0xAE6800", Offset = "0xAE5800", VA = "0x180AE6800")]
|
||||
private unsafe static int Receive_internal(SafeSocketHandle safeHandle, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013A0 RID: 5024 RVA: 0x00009000 File Offset: 0x00007200
|
||||
[Token(Token = "0x60013A0")]
|
||||
[Address(RVA = "0xAE6A50", Offset = "0xAE5A50", VA = "0x180AE6A50")]
|
||||
private unsafe static int Receive_internal(IntPtr sock, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013A1 RID: 5025 RVA: 0x00009018 File Offset: 0x00007218
|
||||
[Token(Token = "0x60013A1")]
|
||||
[Address(RVA = "0xAE6670", Offset = "0xAE5670", VA = "0x180AE6670")]
|
||||
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: 0x060013A2 RID: 5026 RVA: 0x00009030 File Offset: 0x00007230
|
||||
[Token(Token = "0x60013A2")]
|
||||
[Address(RVA = "0xAE4AD0", Offset = "0xAE3AD0", VA = "0x180AE4AD0")]
|
||||
public int EndReceiveFrom(IAsyncResult asyncResult, ref EndPoint endPoint)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013A3 RID: 5027 RVA: 0x00009048 File Offset: 0x00007248
|
||||
[Token(Token = "0x60013A3")]
|
||||
[Address(RVA = "0xAE6540", Offset = "0xAE5540", VA = "0x180AE6540")]
|
||||
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: 0x060013A4 RID: 5028 RVA: 0x00009060 File Offset: 0x00007260
|
||||
[Token(Token = "0x60013A4")]
|
||||
[Address(RVA = "0xAE6530", Offset = "0xAE5530", VA = "0x180AE6530")]
|
||||
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: 0x060013A5 RID: 5029 RVA: 0x00009078 File Offset: 0x00007278
|
||||
[Token(Token = "0x60013A5")]
|
||||
[Address(RVA = "0xAE76A0", Offset = "0xAE66A0", VA = "0x180AE76A0")]
|
||||
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: 0x060013A6 RID: 5030 RVA: 0x00009090 File Offset: 0x00007290
|
||||
[Token(Token = "0x60013A6")]
|
||||
[Address(RVA = "0xAE7A80", Offset = "0xAE6A80", VA = "0x180AE7A80")]
|
||||
[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: 0x060013A7 RID: 5031 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013A7")]
|
||||
[Address(RVA = "0xAE3380", Offset = "0xAE2380", VA = "0x180AE3380")]
|
||||
public IAsyncResult BeginSend(byte[] buffer, int offset, int size, SocketFlags socketFlags, out SocketError errorCode, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060013A8 RID: 5032 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013A8")]
|
||||
[Address(RVA = "0xAE3040", Offset = "0xAE2040", VA = "0x180AE3040")]
|
||||
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: 0x060013A9 RID: 5033 RVA: 0x000090A8 File Offset: 0x000072A8
|
||||
[Token(Token = "0x60013A9")]
|
||||
[Address(RVA = "0xAE4E80", Offset = "0xAE3E80", VA = "0x180AE4E80")]
|
||||
public int EndSend(IAsyncResult asyncResult, out SocketError errorCode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013AA RID: 5034 RVA: 0x000090C0 File Offset: 0x000072C0
|
||||
[Token(Token = "0x60013AA")]
|
||||
[Address(RVA = "0xAE74C0", Offset = "0xAE64C0", VA = "0x180AE74C0")]
|
||||
private unsafe static int Send_internal(SafeSocketHandle safeHandle, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013AB RID: 5035 RVA: 0x000090D8 File Offset: 0x000072D8
|
||||
[Token(Token = "0x60013AB")]
|
||||
[Address(RVA = "0xAE75F0", Offset = "0xAE65F0", VA = "0x180AE75F0")]
|
||||
private unsafe static int Send_internal(IntPtr sock, Socket.WSABUF* bufarray, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013AC RID: 5036 RVA: 0x000090F0 File Offset: 0x000072F0
|
||||
[Token(Token = "0x60013AC")]
|
||||
[Address(RVA = "0xAE73A0", Offset = "0xAE63A0", VA = "0x180AE73A0")]
|
||||
private unsafe static int Send_internal(SafeSocketHandle safeHandle, byte* buffer, int count, SocketFlags flags, out int error, bool blocking)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013AD RID: 5037 RVA: 0x00009108 File Offset: 0x00007308
|
||||
[Token(Token = "0x60013AD")]
|
||||
[Address(RVA = "0xAE75E0", Offset = "0xAE65E0", VA = "0x180AE75E0")]
|
||||
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: 0x060013AE RID: 5038 RVA: 0x00009120 File Offset: 0x00007320
|
||||
[Token(Token = "0x60013AE")]
|
||||
[Address(RVA = "0xAE4DD0", Offset = "0xAE3DD0", VA = "0x180AE4DD0")]
|
||||
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: 0x060013AF RID: 5039 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013AF")]
|
||||
[Address(RVA = "0xAE5100", Offset = "0xAE4100", VA = "0x180AE5100")]
|
||||
public object GetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060013B0 RID: 5040 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B0")]
|
||||
[Address(RVA = "0xAE5310", Offset = "0xAE4310", VA = "0x180AE5310")]
|
||||
private static void GetSocketOption_obj_internal(SafeSocketHandle safeHandle, SocketOptionLevel level, SocketOptionName name, out object obj_val, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013B1 RID: 5041 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B1")]
|
||||
[Address(RVA = "0xAE5300", Offset = "0xAE4300", VA = "0x180AE5300")]
|
||||
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: 0x060013B2 RID: 5042 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B2")]
|
||||
[Address(RVA = "0xAE8110", Offset = "0xAE7110", VA = "0x180AE8110")]
|
||||
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: 0x060013B3 RID: 5043 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B3")]
|
||||
[Address(RVA = "0xAE83E0", Offset = "0xAE73E0", VA = "0x180AE83E0")]
|
||||
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: 0x060013B4 RID: 5044 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B4")]
|
||||
[Address(RVA = "0xAE8400", Offset = "0xAE7400", VA = "0x180AE8400")]
|
||||
public void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013B5 RID: 5045 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B5")]
|
||||
[Address(RVA = "0xAE7FD0", Offset = "0xAE6FD0", VA = "0x180AE7FD0")]
|
||||
private static void SetSocketOption_internal(SafeSocketHandle safeHandle, SocketOptionLevel level, SocketOptionName name, object obj_val, byte[] byte_val, int int_val, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013B6 RID: 5046 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013B6")]
|
||||
[Address(RVA = "0xAE8100", Offset = "0xAE7100", VA = "0x180AE8100")]
|
||||
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: 0x060013B7 RID: 5047 RVA: 0x00009138 File Offset: 0x00007338
|
||||
[Token(Token = "0x60013B7")]
|
||||
[Address(RVA = "0xAE56E0", Offset = "0xAE46E0", VA = "0x180AE56E0")]
|
||||
public int IOControl(int ioControlCode, byte[] optionInValue, byte[] optionOutValue)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013B8 RID: 5048 RVA: 0x00009150 File Offset: 0x00007350
|
||||
[Token(Token = "0x60013B8")]
|
||||
[Address(RVA = "0xAE5430", Offset = "0xAE4430", VA = "0x180AE5430")]
|
||||
private static int IOControl_internal(SafeSocketHandle safeHandle, int ioctl_code, byte[] input, byte[] output, out int error)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x060013B9 RID: 5049 RVA: 0x00009168 File Offset: 0x00007368
|
||||
[Token(Token = "0x60013B9")]
|
||||
[Address(RVA = "0xAE5560", Offset = "0xAE4560", VA = "0x180AE5560")]
|
||||
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: 0x060013BA RID: 5050 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BA")]
|
||||
[Address(RVA = "0xAE3A20", Offset = "0xAE2A20", VA = "0x180AE3A20")]
|
||||
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: 0x060013BB RID: 5051 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BB")]
|
||||
[Address(RVA = "0xAE39B0", Offset = "0xAE29B0", VA = "0x180AE39B0")]
|
||||
public void Close(int timeout)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013BC RID: 5052 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BC")]
|
||||
[Address(RVA = "0xAE39A0", Offset = "0xAE29A0", VA = "0x180AE39A0")]
|
||||
internal static void Close_internal(IntPtr socket, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013BD RID: 5053 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BD")]
|
||||
[Address(RVA = "0xAE8520", Offset = "0xAE7520", VA = "0x180AE8520")]
|
||||
private static void Shutdown_internal(SafeSocketHandle safeHandle, SocketShutdown how, out int error)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013BE RID: 5054 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BE")]
|
||||
[Address(RVA = "0xAE8620", Offset = "0xAE7620", VA = "0x180AE8620")]
|
||||
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: 0x060013BF RID: 5055 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013BF")]
|
||||
[Address(RVA = "0xAE45B0", Offset = "0xAE35B0", VA = "0x180AE45B0", Slot = "5")]
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C0 RID: 5056 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C0")]
|
||||
[Address(RVA = "0xAE5CD0", Offset = "0xAE4CD0", VA = "0x180AE5CD0")]
|
||||
private void Linger(IntPtr handle)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C1 RID: 5057 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C1")]
|
||||
[Address(RVA = "0xAE8960", Offset = "0xAE7960", VA = "0x180AE8960")]
|
||||
private void ThrowIfDisposedAndClosed()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C2 RID: 5058 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C2")]
|
||||
[Address(RVA = "0xAE87B0", Offset = "0xAE77B0", VA = "0x180AE87B0")]
|
||||
private void ThrowIfBufferNull(byte[] buffer)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C3 RID: 5059 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C3")]
|
||||
[Address(RVA = "0xAE8810", Offset = "0xAE7810", VA = "0x180AE8810")]
|
||||
private void ThrowIfBufferOutOfRange(byte[] buffer, int offset, int size)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C4 RID: 5060 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C4")]
|
||||
[Address(RVA = "0xAE8A00", Offset = "0xAE7A00", VA = "0x180AE8A00")]
|
||||
private void ThrowIfUdp()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C5 RID: 5061 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013C5")]
|
||||
[Address(RVA = "0xAE8A80", Offset = "0xAE7A80", VA = "0x180AE8A80")]
|
||||
private SocketAsyncResult ValidateEndIAsyncResult(IAsyncResult ares, string methodName, string argName)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060013C6 RID: 5062 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C6")]
|
||||
[Address(RVA = "0xAE6410", Offset = "0xAE5410", VA = "0x180AE6410")]
|
||||
private void QueueIOSelectorJob(SemaphoreSlim sem, IntPtr handle, IOSelectorJob job)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013C7 RID: 5063 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013C7")]
|
||||
[Address(RVA = "0xAE71C0", Offset = "0xAE61C0", VA = "0x180AE71C0")]
|
||||
private IPEndPoint RemapIPEndPoint(IPEndPoint input)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x060013C8 RID: 5064 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013C8")]
|
||||
[Address(RVA = "0xAE9470", Offset = "0xAE8470", VA = "0x180AE9470")]
|
||||
internal static void cancel_blocking_socket_operation(Thread thread)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000408 RID: 1032
|
||||
// (get) Token: 0x060013C9 RID: 5065 RVA: 0x00009180 File Offset: 0x00007380
|
||||
[Token(Token = "0x17000408")]
|
||||
internal static int FamilyHint
|
||||
{
|
||||
[Token(Token = "0x60013C9")]
|
||||
[Address(RVA = "0xAE9680", Offset = "0xAE8680", VA = "0x180AE9680")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060013CA RID: 5066 RVA: 0x00009198 File Offset: 0x00007398
|
||||
[Token(Token = "0x60013CA")]
|
||||
[Address(RVA = "0xAE5C70", Offset = "0xAE4C70", VA = "0x180AE5C70")]
|
||||
private static bool IsProtocolSupported_internal(NetworkInterfaceComponent networkInterface)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x060013CB RID: 5067 RVA: 0x000091B0 File Offset: 0x000073B0
|
||||
[Token(Token = "0x60013CB")]
|
||||
[Address(RVA = "0xAE5C80", Offset = "0xAE4C80", VA = "0x180AE5C80")]
|
||||
private static bool IsProtocolSupported(NetworkInterfaceComponent networkInterface)
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x04000BDA RID: 3034
|
||||
[Token(Token = "0x4000BDA")]
|
||||
private static object s_InternalSyncObject;
|
||||
|
||||
// Token: 0x04000BDB RID: 3035
|
||||
[Token(Token = "0x4000BDB")]
|
||||
internal static bool s_SupportsIPv4;
|
||||
|
||||
// Token: 0x04000BDC RID: 3036
|
||||
[Token(Token = "0x4000BDC")]
|
||||
internal static bool s_SupportsIPv6;
|
||||
|
||||
// Token: 0x04000BDD RID: 3037
|
||||
[Token(Token = "0x4000BDD")]
|
||||
internal static bool s_OSSupportsIPv6;
|
||||
|
||||
// Token: 0x04000BDE RID: 3038
|
||||
[Token(Token = "0x4000BDE")]
|
||||
internal static bool s_Initialized;
|
||||
|
||||
// Token: 0x04000BDF RID: 3039
|
||||
[Token(Token = "0x4000BDF")]
|
||||
private static bool s_LoggingEnabled;
|
||||
|
||||
// Token: 0x04000BE0 RID: 3040
|
||||
[Token(Token = "0x4000BE0")]
|
||||
internal static bool s_PerfCountersEnabled;
|
||||
|
||||
// Token: 0x04000BE1 RID: 3041
|
||||
[Token(Token = "0x4000BE1")]
|
||||
internal const int DefaultCloseTimeout = -1;
|
||||
|
||||
// Token: 0x04000BE2 RID: 3042
|
||||
[Token(Token = "0x4000BE2")]
|
||||
private const int SOCKET_CLOSED_CODE = 10004;
|
||||
|
||||
// Token: 0x04000BE3 RID: 3043
|
||||
[Token(Token = "0x4000BE3")]
|
||||
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: 0x04000BE4 RID: 3044
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000BE4")]
|
||||
private bool is_closed;
|
||||
|
||||
// Token: 0x04000BE5 RID: 3045
|
||||
[FieldOffset(Offset = "0x11")]
|
||||
[Token(Token = "0x4000BE5")]
|
||||
private bool is_listening;
|
||||
|
||||
// Token: 0x04000BE6 RID: 3046
|
||||
[FieldOffset(Offset = "0x12")]
|
||||
[Token(Token = "0x4000BE6")]
|
||||
private bool useOverlappedIO;
|
||||
|
||||
// Token: 0x04000BE7 RID: 3047
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4000BE7")]
|
||||
private int linger_timeout;
|
||||
|
||||
// Token: 0x04000BE8 RID: 3048
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000BE8")]
|
||||
private AddressFamily addressFamily;
|
||||
|
||||
// Token: 0x04000BE9 RID: 3049
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4000BE9")]
|
||||
private SocketType socketType;
|
||||
|
||||
// Token: 0x04000BEA RID: 3050
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000BEA")]
|
||||
private ProtocolType protocolType;
|
||||
|
||||
// Token: 0x04000BEB RID: 3051
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000BEB")]
|
||||
internal SafeSocketHandle m_Handle;
|
||||
|
||||
// Token: 0x04000BEC RID: 3052
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000BEC")]
|
||||
internal EndPoint seed_endpoint;
|
||||
|
||||
// Token: 0x04000BED RID: 3053
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000BED")]
|
||||
internal SemaphoreSlim ReadSem;
|
||||
|
||||
// Token: 0x04000BEE RID: 3054
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000BEE")]
|
||||
internal SemaphoreSlim WriteSem;
|
||||
|
||||
// Token: 0x04000BEF RID: 3055
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4000BEF")]
|
||||
internal bool is_blocking;
|
||||
|
||||
// Token: 0x04000BF0 RID: 3056
|
||||
[FieldOffset(Offset = "0x49")]
|
||||
[Token(Token = "0x4000BF0")]
|
||||
internal bool is_bound;
|
||||
|
||||
// Token: 0x04000BF1 RID: 3057
|
||||
[FieldOffset(Offset = "0x4A")]
|
||||
[Token(Token = "0x4000BF1")]
|
||||
internal bool is_connected;
|
||||
|
||||
// Token: 0x04000BF2 RID: 3058
|
||||
[FieldOffset(Offset = "0x4C")]
|
||||
[Token(Token = "0x4000BF2")]
|
||||
private int m_IntCleanedUp;
|
||||
|
||||
// Token: 0x04000BF3 RID: 3059
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4000BF3")]
|
||||
internal bool connect_in_progress;
|
||||
|
||||
// Token: 0x04000BF4 RID: 3060
|
||||
[Token(Token = "0x4000BF4")]
|
||||
private static AsyncCallback AcceptAsyncCallback;
|
||||
|
||||
// Token: 0x04000BF5 RID: 3061
|
||||
[Token(Token = "0x4000BF5")]
|
||||
private static IOAsyncCallback BeginAcceptCallback;
|
||||
|
||||
// Token: 0x04000BF6 RID: 3062
|
||||
[Token(Token = "0x4000BF6")]
|
||||
private static IOAsyncCallback BeginAcceptReceiveCallback;
|
||||
|
||||
// Token: 0x04000BF7 RID: 3063
|
||||
[Token(Token = "0x4000BF7")]
|
||||
private static AsyncCallback ConnectAsyncCallback;
|
||||
|
||||
// Token: 0x04000BF8 RID: 3064
|
||||
[Token(Token = "0x4000BF8")]
|
||||
private static IOAsyncCallback BeginConnectCallback;
|
||||
|
||||
// Token: 0x04000BF9 RID: 3065
|
||||
[Token(Token = "0x4000BF9")]
|
||||
private static AsyncCallback DisconnectAsyncCallback;
|
||||
|
||||
// Token: 0x04000BFA RID: 3066
|
||||
[Token(Token = "0x4000BFA")]
|
||||
private static IOAsyncCallback BeginDisconnectCallback;
|
||||
|
||||
// Token: 0x04000BFB RID: 3067
|
||||
[Token(Token = "0x4000BFB")]
|
||||
private static AsyncCallback ReceiveAsyncCallback;
|
||||
|
||||
// Token: 0x04000BFC RID: 3068
|
||||
[Token(Token = "0x4000BFC")]
|
||||
private static IOAsyncCallback BeginReceiveCallback;
|
||||
|
||||
// Token: 0x04000BFD RID: 3069
|
||||
[Token(Token = "0x4000BFD")]
|
||||
private static IOAsyncCallback BeginReceiveGenericCallback;
|
||||
|
||||
// Token: 0x04000BFE RID: 3070
|
||||
[Token(Token = "0x4000BFE")]
|
||||
private static AsyncCallback ReceiveFromAsyncCallback;
|
||||
|
||||
// Token: 0x04000BFF RID: 3071
|
||||
[Token(Token = "0x4000BFF")]
|
||||
private static IOAsyncCallback BeginReceiveFromCallback;
|
||||
|
||||
// Token: 0x04000C00 RID: 3072
|
||||
[Token(Token = "0x4000C00")]
|
||||
private static AsyncCallback SendAsyncCallback;
|
||||
|
||||
// Token: 0x04000C01 RID: 3073
|
||||
[Token(Token = "0x4000C01")]
|
||||
private static IOAsyncCallback BeginSendGenericCallback;
|
||||
|
||||
// Token: 0x04000C02 RID: 3074
|
||||
[Token(Token = "0x4000C02")]
|
||||
private static AsyncCallback SendToAsyncCallback;
|
||||
|
||||
// Token: 0x020002DC RID: 732
|
||||
[Token(Token = "0x20002DC")]
|
||||
private struct WSABUF
|
||||
{
|
||||
// Token: 0x04000C03 RID: 3075
|
||||
[FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x4000C03")]
|
||||
public int len;
|
||||
|
||||
// Token: 0x04000C04 RID: 3076
|
||||
[FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x4000C04")]
|
||||
public IntPtr buf;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Represents an asynchronous socket operation.</summary>
|
||||
// Token: 0x020002E9 RID: 745
|
||||
[Token(Token = "0x20002E9")]
|
||||
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: 0x1700040C RID: 1036
|
||||
// (get) Token: 0x060013FF RID: 5119 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x06001400 RID: 5120 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700040C")]
|
||||
public Socket AcceptSocket
|
||||
{
|
||||
[Token(Token = "0x60013FF")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
[CompilerGenerated]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x6001400")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
[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: 0x1700040D RID: 1037
|
||||
// (set) Token: 0x06001401 RID: 5121 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700040D")]
|
||||
internal int BytesTransferred
|
||||
{
|
||||
[Token(Token = "0x6001401")]
|
||||
[Address(RVA = "0x4258B0", Offset = "0x4248B0", VA = "0x1804258B0")]
|
||||
[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: 0x1700040E RID: 1038
|
||||
// (set) Token: 0x06001402 RID: 5122 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x1700040E")]
|
||||
public SocketError SocketError
|
||||
{
|
||||
[Token(Token = "0x6001402")]
|
||||
[Address(RVA = "0x812720", Offset = "0x811720", VA = "0x180812720")]
|
||||
[CompilerGenerated]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001403 RID: 5123 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001403")]
|
||||
[Address(RVA = "0xAE0DF0", Offset = "0xADFDF0", VA = "0x180AE0DF0")]
|
||||
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: 0x06001404 RID: 5124 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001404")]
|
||||
[Address(RVA = "0xAE0E00", Offset = "0xADFE00", VA = "0x180AE0E00", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001405 RID: 5125 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001405")]
|
||||
[Address(RVA = "0xAE0DD0", Offset = "0xADFDD0", VA = "0x180AE0DD0")]
|
||||
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: 0x06001406 RID: 5126 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001406")]
|
||||
[Address(RVA = "0xAE0E60", Offset = "0xADFE60", VA = "0x180AE0E60", Slot = "5")]
|
||||
protected virtual void OnCompleted(SocketAsyncEventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000C95 RID: 3221
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000C95")]
|
||||
private bool disposed;
|
||||
|
||||
// Token: 0x04000C96 RID: 3222
|
||||
[FieldOffset(Offset = "0x14")]
|
||||
[Token(Token = "0x4000C96")]
|
||||
internal int in_progress;
|
||||
|
||||
// Token: 0x04000C97 RID: 3223
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000C97")]
|
||||
internal EndPoint remote_ep;
|
||||
|
||||
// Token: 0x04000C98 RID: 3224
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000C98")]
|
||||
internal Socket current_socket;
|
||||
|
||||
// Token: 0x04000C9C RID: 3228
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000C9C")]
|
||||
[CompilerGenerated]
|
||||
private EventHandler<SocketAsyncEventArgs> Completed;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
// Token: 0x020002EA RID: 746
|
||||
[Token(Token = "0x20002EA")]
|
||||
[StructLayout(0)]
|
||||
internal sealed class SocketAsyncResult : IOAsyncResult
|
||||
{
|
||||
// Token: 0x1700040F RID: 1039
|
||||
// (get) Token: 0x06001407 RID: 5127 RVA: 0x000091F8 File Offset: 0x000073F8
|
||||
[Token(Token = "0x1700040F")]
|
||||
public IntPtr Handle
|
||||
{
|
||||
[Token(Token = "0x6001407")]
|
||||
[Address(RVA = "0xAE12C0", Offset = "0xAE02C0", VA = "0x180AE12C0")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001408 RID: 5128 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001408")]
|
||||
[Address(RVA = "0xAE11F0", Offset = "0xAE01F0", VA = "0x180AE11F0")]
|
||||
public SocketAsyncResult(Socket socket, AsyncCallback callback, object state, SocketOperation operation)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000410 RID: 1040
|
||||
// (get) Token: 0x06001409 RID: 5129 RVA: 0x00009210 File Offset: 0x00007410
|
||||
[Token(Token = "0x17000410")]
|
||||
public SocketError ErrorCode
|
||||
{
|
||||
[Token(Token = "0x6001409")]
|
||||
[Address(RVA = "0xAE1230", Offset = "0xAE0230", VA = "0x180AE1230")]
|
||||
get
|
||||
{
|
||||
return SocketError.Success;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600140A RID: 5130 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140A")]
|
||||
[Address(RVA = "0xAE0EB0", Offset = "0xADFEB0", VA = "0x180AE0EB0")]
|
||||
public void CheckIfThrowDelayedException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600140B RID: 5131 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140B")]
|
||||
[Address(RVA = "0xAE0F80", Offset = "0xADFF80", VA = "0x180AE0F80", Slot = "8")]
|
||||
internal override void CompleteDisposed()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600140C RID: 5132 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140C")]
|
||||
[Address(RVA = "0xAE0FD0", Offset = "0xADFFD0", VA = "0x180AE0FD0")]
|
||||
public void Complete()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600140D RID: 5133 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140D")]
|
||||
[Address(RVA = "0xAE0FC0", Offset = "0xADFFC0", VA = "0x180AE0FC0")]
|
||||
public void Complete(bool synch)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600140E RID: 5134 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140E")]
|
||||
[Address(RVA = "0xAE11E0", Offset = "0xAE01E0", VA = "0x180AE11E0")]
|
||||
public void Complete(int total)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600140F RID: 5135 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600140F")]
|
||||
[Address(RVA = "0xAE0F90", Offset = "0xADFF90", VA = "0x180AE0F90")]
|
||||
public void Complete(Exception e, bool synch)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001410 RID: 5136 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001410")]
|
||||
[Address(RVA = "0xAE0FA0", Offset = "0xADFFA0", VA = "0x180AE0FA0")]
|
||||
public void Complete(Exception e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001411 RID: 5137 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001411")]
|
||||
[Address(RVA = "0xAE0FB0", Offset = "0xADFFB0", VA = "0x180AE0FB0")]
|
||||
public void Complete(Socket s)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001412 RID: 5138 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001412")]
|
||||
[Address(RVA = "0xAE11C0", Offset = "0xAE01C0", VA = "0x180AE11C0")]
|
||||
public void Complete(Socket s, int total)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000C9D RID: 3229
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000C9D")]
|
||||
public Socket socket;
|
||||
|
||||
// Token: 0x04000C9E RID: 3230
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000C9E")]
|
||||
public SocketOperation operation;
|
||||
|
||||
// Token: 0x04000C9F RID: 3231
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000C9F")]
|
||||
private Exception DelayedException;
|
||||
|
||||
// Token: 0x04000CA0 RID: 3232
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4000CA0")]
|
||||
public EndPoint EndPoint;
|
||||
|
||||
// Token: 0x04000CA1 RID: 3233
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4000CA1")]
|
||||
public byte[] Buffer;
|
||||
|
||||
// Token: 0x04000CA2 RID: 3234
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4000CA2")]
|
||||
public int Offset;
|
||||
|
||||
// Token: 0x04000CA3 RID: 3235
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
|
||||
[Token(Token = "0x4000CA3")]
|
||||
public int Size;
|
||||
|
||||
// Token: 0x04000CA4 RID: 3236
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4000CA4")]
|
||||
public SocketFlags SockFlags;
|
||||
|
||||
// Token: 0x04000CA5 RID: 3237
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4000CA5")]
|
||||
public Socket AcceptSocket;
|
||||
|
||||
// Token: 0x04000CA6 RID: 3238
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4000CA6")]
|
||||
public IPAddress[] Addresses;
|
||||
|
||||
// Token: 0x04000CA7 RID: 3239
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4000CA7")]
|
||||
public int Port;
|
||||
|
||||
// Token: 0x04000CA8 RID: 3240
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4000CA8")]
|
||||
public IList<ArraySegment<byte>> Buffers;
|
||||
|
||||
// Token: 0x04000CA9 RID: 3241
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4000CA9")]
|
||||
public bool ReuseSocket;
|
||||
|
||||
// Token: 0x04000CAA RID: 3242
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8C")]
|
||||
[Token(Token = "0x4000CAA")]
|
||||
public int CurrentAddress;
|
||||
|
||||
// Token: 0x04000CAB RID: 3243
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4000CAB")]
|
||||
public Socket AcceptedSocket;
|
||||
|
||||
// Token: 0x04000CAC RID: 3244
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4000CAC")]
|
||||
public int Total;
|
||||
|
||||
// Token: 0x04000CAD RID: 3245
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x9C")]
|
||||
[Token(Token = "0x4000CAD")]
|
||||
internal int error;
|
||||
|
||||
// Token: 0x04000CAE RID: 3246
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
|
||||
[Token(Token = "0x4000CAE")]
|
||||
public int EndCalled;
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002E0 RID: 736
|
||||
[Token(Token = "0x20002E0")]
|
||||
public enum SocketError
|
||||
{
|
||||
/// <summary>The <see cref="T:System.Net.Sockets.Socket" /> operation succeeded.</summary>
|
||||
// Token: 0x04000C0C RID: 3084
|
||||
[Token(Token = "0x4000C0C")]
|
||||
Success,
|
||||
/// <summary>An unspecified <see cref="T:System.Net.Sockets.Socket" /> error has occurred.</summary>
|
||||
// Token: 0x04000C0D RID: 3085
|
||||
[Token(Token = "0x4000C0D")]
|
||||
SocketError = -1,
|
||||
/// <summary>A blocking <see cref="T:System.Net.Sockets.Socket" /> call was canceled.</summary>
|
||||
// Token: 0x04000C0E RID: 3086
|
||||
[Token(Token = "0x4000C0E")]
|
||||
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: 0x04000C0F RID: 3087
|
||||
[Token(Token = "0x4000C0F")]
|
||||
AccessDenied = 10013,
|
||||
/// <summary>An invalid pointer address was detected by the underlying socket provider.</summary>
|
||||
// Token: 0x04000C10 RID: 3088
|
||||
[Token(Token = "0x4000C10")]
|
||||
Fault,
|
||||
/// <summary>An invalid argument was supplied to a <see cref="T:System.Net.Sockets.Socket" /> member.</summary>
|
||||
// Token: 0x04000C11 RID: 3089
|
||||
[Token(Token = "0x4000C11")]
|
||||
InvalidArgument = 10022,
|
||||
/// <summary>There are too many open sockets in the underlying socket provider.</summary>
|
||||
// Token: 0x04000C12 RID: 3090
|
||||
[Token(Token = "0x4000C12")]
|
||||
TooManyOpenSockets = 10024,
|
||||
/// <summary>An operation on a nonblocking socket cannot be completed immediately.</summary>
|
||||
// Token: 0x04000C13 RID: 3091
|
||||
[Token(Token = "0x4000C13")]
|
||||
WouldBlock = 10035,
|
||||
/// <summary>A blocking operation is in progress.</summary>
|
||||
// Token: 0x04000C14 RID: 3092
|
||||
[Token(Token = "0x4000C14")]
|
||||
InProgress,
|
||||
/// <summary>The nonblocking <see cref="T:System.Net.Sockets.Socket" /> already has an operation in progress.</summary>
|
||||
// Token: 0x04000C15 RID: 3093
|
||||
[Token(Token = "0x4000C15")]
|
||||
AlreadyInProgress,
|
||||
/// <summary>A <see cref="T:System.Net.Sockets.Socket" /> operation was attempted on a non-socket.</summary>
|
||||
// Token: 0x04000C16 RID: 3094
|
||||
[Token(Token = "0x4000C16")]
|
||||
NotSocket,
|
||||
/// <summary>A required address was omitted from an operation on a <see cref="T:System.Net.Sockets.Socket" />.</summary>
|
||||
// Token: 0x04000C17 RID: 3095
|
||||
[Token(Token = "0x4000C17")]
|
||||
DestinationAddressRequired,
|
||||
/// <summary>The datagram is too long.</summary>
|
||||
// Token: 0x04000C18 RID: 3096
|
||||
[Token(Token = "0x4000C18")]
|
||||
MessageSize,
|
||||
/// <summary>The protocol type is incorrect for this <see cref="T:System.Net.Sockets.Socket" />.</summary>
|
||||
// Token: 0x04000C19 RID: 3097
|
||||
[Token(Token = "0x4000C19")]
|
||||
ProtocolType,
|
||||
/// <summary>An unknown, invalid, or unsupported option or level was used with a <see cref="T:System.Net.Sockets.Socket" />.</summary>
|
||||
// Token: 0x04000C1A RID: 3098
|
||||
[Token(Token = "0x4000C1A")]
|
||||
ProtocolOption,
|
||||
/// <summary>The protocol is not implemented or has not been configured.</summary>
|
||||
// Token: 0x04000C1B RID: 3099
|
||||
[Token(Token = "0x4000C1B")]
|
||||
ProtocolNotSupported,
|
||||
/// <summary>The support for the specified socket type does not exist in this address family.</summary>
|
||||
// Token: 0x04000C1C RID: 3100
|
||||
[Token(Token = "0x4000C1C")]
|
||||
SocketNotSupported,
|
||||
/// <summary>The address family is not supported by the protocol family.</summary>
|
||||
// Token: 0x04000C1D RID: 3101
|
||||
[Token(Token = "0x4000C1D")]
|
||||
OperationNotSupported,
|
||||
/// <summary>The protocol family is not implemented or has not been configured.</summary>
|
||||
// Token: 0x04000C1E RID: 3102
|
||||
[Token(Token = "0x4000C1E")]
|
||||
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: 0x04000C1F RID: 3103
|
||||
[Token(Token = "0x4000C1F")]
|
||||
AddressFamilyNotSupported,
|
||||
/// <summary>Only one use of an address is normally permitted.</summary>
|
||||
// Token: 0x04000C20 RID: 3104
|
||||
[Token(Token = "0x4000C20")]
|
||||
AddressAlreadyInUse,
|
||||
/// <summary>The selected IP address is not valid in this context.</summary>
|
||||
// Token: 0x04000C21 RID: 3105
|
||||
[Token(Token = "0x4000C21")]
|
||||
AddressNotAvailable,
|
||||
/// <summary>The network is not available.</summary>
|
||||
// Token: 0x04000C22 RID: 3106
|
||||
[Token(Token = "0x4000C22")]
|
||||
NetworkDown,
|
||||
/// <summary>No route to the remote host exists.</summary>
|
||||
// Token: 0x04000C23 RID: 3107
|
||||
[Token(Token = "0x4000C23")]
|
||||
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: 0x04000C24 RID: 3108
|
||||
[Token(Token = "0x4000C24")]
|
||||
NetworkReset,
|
||||
/// <summary>The connection was aborted by the .NET Framework or the underlying socket provider.</summary>
|
||||
// Token: 0x04000C25 RID: 3109
|
||||
[Token(Token = "0x4000C25")]
|
||||
ConnectionAborted,
|
||||
/// <summary>The connection was reset by the remote peer.</summary>
|
||||
// Token: 0x04000C26 RID: 3110
|
||||
[Token(Token = "0x4000C26")]
|
||||
ConnectionReset,
|
||||
/// <summary>No free buffer space is available for a <see cref="T:System.Net.Sockets.Socket" /> operation.</summary>
|
||||
// Token: 0x04000C27 RID: 3111
|
||||
[Token(Token = "0x4000C27")]
|
||||
NoBufferSpaceAvailable,
|
||||
/// <summary>The <see cref="T:System.Net.Sockets.Socket" /> is already connected.</summary>
|
||||
// Token: 0x04000C28 RID: 3112
|
||||
[Token(Token = "0x4000C28")]
|
||||
IsConnected,
|
||||
/// <summary>The application tried to send or receive data, and the <see cref="T:System.Net.Sockets.Socket" /> is not connected.</summary>
|
||||
// Token: 0x04000C29 RID: 3113
|
||||
[Token(Token = "0x4000C29")]
|
||||
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: 0x04000C2A RID: 3114
|
||||
[Token(Token = "0x4000C2A")]
|
||||
Shutdown,
|
||||
/// <summary>The connection attempt timed out, or the connected host has failed to respond.</summary>
|
||||
// Token: 0x04000C2B RID: 3115
|
||||
[Token(Token = "0x4000C2B")]
|
||||
TimedOut = 10060,
|
||||
/// <summary>The remote host is actively refusing a connection.</summary>
|
||||
// Token: 0x04000C2C RID: 3116
|
||||
[Token(Token = "0x4000C2C")]
|
||||
ConnectionRefused,
|
||||
/// <summary>The operation failed because the remote host is down.</summary>
|
||||
// Token: 0x04000C2D RID: 3117
|
||||
[Token(Token = "0x4000C2D")]
|
||||
HostDown = 10064,
|
||||
/// <summary>There is no network route to the specified host.</summary>
|
||||
// Token: 0x04000C2E RID: 3118
|
||||
[Token(Token = "0x4000C2E")]
|
||||
HostUnreachable,
|
||||
/// <summary>Too many processes are using the underlying socket provider.</summary>
|
||||
// Token: 0x04000C2F RID: 3119
|
||||
[Token(Token = "0x4000C2F")]
|
||||
ProcessLimit = 10067,
|
||||
/// <summary>The network subsystem is unavailable.</summary>
|
||||
// Token: 0x04000C30 RID: 3120
|
||||
[Token(Token = "0x4000C30")]
|
||||
SystemNotReady = 10091,
|
||||
/// <summary>The version of the underlying socket provider is out of range.</summary>
|
||||
// Token: 0x04000C31 RID: 3121
|
||||
[Token(Token = "0x4000C31")]
|
||||
VersionNotSupported,
|
||||
/// <summary>The underlying socket provider has not been initialized.</summary>
|
||||
// Token: 0x04000C32 RID: 3122
|
||||
[Token(Token = "0x4000C32")]
|
||||
NotInitialized,
|
||||
/// <summary>A graceful shutdown is in progress.</summary>
|
||||
// Token: 0x04000C33 RID: 3123
|
||||
[Token(Token = "0x4000C33")]
|
||||
Disconnecting = 10101,
|
||||
/// <summary>The specified class was not found.</summary>
|
||||
// Token: 0x04000C34 RID: 3124
|
||||
[Token(Token = "0x4000C34")]
|
||||
TypeNotFound = 10109,
|
||||
/// <summary>No such host is known. The name is not an official host name or alias.</summary>
|
||||
// Token: 0x04000C35 RID: 3125
|
||||
[Token(Token = "0x4000C35")]
|
||||
HostNotFound = 11001,
|
||||
/// <summary>The name of the host could not be resolved. Try again later.</summary>
|
||||
// Token: 0x04000C36 RID: 3126
|
||||
[Token(Token = "0x4000C36")]
|
||||
TryAgain,
|
||||
/// <summary>The error is unrecoverable or the requested database cannot be located.</summary>
|
||||
// Token: 0x04000C37 RID: 3127
|
||||
[Token(Token = "0x4000C37")]
|
||||
NoRecovery,
|
||||
/// <summary>The requested name or IP address was not found on the name server.</summary>
|
||||
// Token: 0x04000C38 RID: 3128
|
||||
[Token(Token = "0x4000C38")]
|
||||
NoData,
|
||||
/// <summary>The application has initiated an overlapped operation that cannot be completed immediately.</summary>
|
||||
// Token: 0x04000C39 RID: 3129
|
||||
[Token(Token = "0x4000C39")]
|
||||
IOPending = 997,
|
||||
/// <summary>The overlapped operation was aborted due to the closure of the <see cref="T:System.Net.Sockets.Socket" />.</summary>
|
||||
// Token: 0x04000C3A RID: 3130
|
||||
[Token(Token = "0x4000C3A")]
|
||||
OperationAborted = 995
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002D1 RID: 721
|
||||
[Token(Token = "0x20002D1")]
|
||||
[Serializable]
|
||||
public class SocketException : Win32Exception
|
||||
{
|
||||
// Token: 0x06001318 RID: 4888 RVA: 0x00008AF0 File Offset: 0x00006CF0
|
||||
[Token(Token = "0x6001318")]
|
||||
[Address(RVA = "0xAE1310", Offset = "0xAE0310", VA = "0x180AE1310")]
|
||||
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: 0x06001319 RID: 4889 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001319")]
|
||||
[Address(RVA = "0xAE14D0", Offset = "0xAE04D0", VA = "0x180AE14D0")]
|
||||
public SocketException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600131A RID: 4890 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600131A")]
|
||||
[Address(RVA = "0xAE1460", Offset = "0xAE0460", VA = "0x180AE1460")]
|
||||
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: 0x0600131B RID: 4891 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600131B")]
|
||||
[Address(RVA = "0xAE1320", Offset = "0xAE0320", VA = "0x180AE1320")]
|
||||
public SocketException(int errorCode)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600131C RID: 4892 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600131C")]
|
||||
[Address(RVA = "0xAE1380", Offset = "0xAE0380", VA = "0x180AE1380")]
|
||||
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: 0x0600131D RID: 4893 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600131D")]
|
||||
[Address(RVA = "0xAE13E0", Offset = "0xAE03E0", VA = "0x180AE13E0")]
|
||||
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: 0x170003E4 RID: 996
|
||||
// (get) Token: 0x0600131E RID: 4894 RVA: 0x00008B08 File Offset: 0x00006D08
|
||||
[Token(Token = "0x170003E4")]
|
||||
public override int ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600131E")]
|
||||
[Address(RVA = "0x4F3F50", Offset = "0x4F2F50", VA = "0x1804F3F50", 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: 0x170003E5 RID: 997
|
||||
// (get) Token: 0x0600131F RID: 4895 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x170003E5")]
|
||||
public override string Message
|
||||
{
|
||||
[Token(Token = "0x600131F")]
|
||||
[Address(RVA = "0xAE1540", Offset = "0xAE0540", VA = "0x180AE1540", 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: 0x170003E6 RID: 998
|
||||
// (get) Token: 0x06001320 RID: 4896 RVA: 0x00008B20 File Offset: 0x00006D20
|
||||
[Token(Token = "0x170003E6")]
|
||||
public SocketError SocketErrorCode
|
||||
{
|
||||
[Token(Token = "0x6001320")]
|
||||
[Address(RVA = "0x4F3F50", Offset = "0x4F2F50", VA = "0x1804F3F50")]
|
||||
get
|
||||
{
|
||||
return SocketError.Success;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04000B69 RID: 2921
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4000B69")]
|
||||
[NonSerialized]
|
||||
private EndPoint m_EndPoint;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Specifies socket send and receive behaviors.</summary>
|
||||
// Token: 0x020002E1 RID: 737
|
||||
[Token(Token = "0x20002E1")]
|
||||
[Flags]
|
||||
public enum SocketFlags
|
||||
{
|
||||
/// <summary>Use no flags for this call.</summary>
|
||||
// Token: 0x04000C3C RID: 3132
|
||||
[Token(Token = "0x4000C3C")]
|
||||
None = 0,
|
||||
/// <summary>Process out-of-band data.</summary>
|
||||
// Token: 0x04000C3D RID: 3133
|
||||
[Token(Token = "0x4000C3D")]
|
||||
OutOfBand = 1,
|
||||
/// <summary>Peek at the incoming message.</summary>
|
||||
// Token: 0x04000C3E RID: 3134
|
||||
[Token(Token = "0x4000C3E")]
|
||||
Peek = 2,
|
||||
/// <summary>Send without using routing tables.</summary>
|
||||
// Token: 0x04000C3F RID: 3135
|
||||
[Token(Token = "0x4000C3F")]
|
||||
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: 0x04000C40 RID: 3136
|
||||
[Token(Token = "0x4000C40")]
|
||||
MaxIOVectorLength = 16,
|
||||
/// <summary>The message was too large to fit into the specified buffer and was truncated.</summary>
|
||||
// Token: 0x04000C41 RID: 3137
|
||||
[Token(Token = "0x4000C41")]
|
||||
Truncated = 256,
|
||||
/// <summary>Indicates that the control data did not fit into an internal 64-KB buffer and was truncated.</summary>
|
||||
// Token: 0x04000C42 RID: 3138
|
||||
[Token(Token = "0x4000C42")]
|
||||
ControlDataTruncated = 512,
|
||||
/// <summary>Indicates a broadcast packet.</summary>
|
||||
// Token: 0x04000C43 RID: 3139
|
||||
[Token(Token = "0x4000C43")]
|
||||
Broadcast = 1024,
|
||||
/// <summary>Indicates a multicast packet.</summary>
|
||||
// Token: 0x04000C44 RID: 3140
|
||||
[Token(Token = "0x4000C44")]
|
||||
Multicast = 2048,
|
||||
/// <summary>Partial send or receive for message.</summary>
|
||||
// Token: 0x04000C45 RID: 3141
|
||||
[Token(Token = "0x4000C45")]
|
||||
Partial = 32768
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
// Token: 0x020002EC RID: 748
|
||||
[Token(Token = "0x20002EC")]
|
||||
internal enum SocketOperation
|
||||
{
|
||||
// Token: 0x04000CB2 RID: 3250
|
||||
[Token(Token = "0x4000CB2")]
|
||||
Accept,
|
||||
// Token: 0x04000CB3 RID: 3251
|
||||
[Token(Token = "0x4000CB3")]
|
||||
Connect,
|
||||
// Token: 0x04000CB4 RID: 3252
|
||||
[Token(Token = "0x4000CB4")]
|
||||
Receive,
|
||||
// Token: 0x04000CB5 RID: 3253
|
||||
[Token(Token = "0x4000CB5")]
|
||||
ReceiveFrom,
|
||||
// Token: 0x04000CB6 RID: 3254
|
||||
[Token(Token = "0x4000CB6")]
|
||||
Send,
|
||||
// Token: 0x04000CB7 RID: 3255
|
||||
[Token(Token = "0x4000CB7")]
|
||||
SendTo,
|
||||
// Token: 0x04000CB8 RID: 3256
|
||||
[Token(Token = "0x4000CB8")]
|
||||
RecvJustCallback,
|
||||
// Token: 0x04000CB9 RID: 3257
|
||||
[Token(Token = "0x4000CB9")]
|
||||
SendJustCallback,
|
||||
// Token: 0x04000CBA RID: 3258
|
||||
[Token(Token = "0x4000CBA")]
|
||||
Disconnect,
|
||||
// Token: 0x04000CBB RID: 3259
|
||||
[Token(Token = "0x4000CBB")]
|
||||
AcceptReceive,
|
||||
// Token: 0x04000CBC RID: 3260
|
||||
[Token(Token = "0x4000CBC")]
|
||||
ReceiveGeneric,
|
||||
// Token: 0x04000CBD RID: 3261
|
||||
[Token(Token = "0x4000CBD")]
|
||||
SendGeneric
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002E2 RID: 738
|
||||
[Token(Token = "0x20002E2")]
|
||||
public enum SocketOptionLevel
|
||||
{
|
||||
/// <summary>
|
||||
/// <see cref="T:System.Net.Sockets.Socket" /> options apply to all sockets.</summary>
|
||||
// Token: 0x04000C47 RID: 3143
|
||||
[Token(Token = "0x4000C47")]
|
||||
Socket = 65535,
|
||||
/// <summary>
|
||||
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to IP sockets.</summary>
|
||||
// Token: 0x04000C48 RID: 3144
|
||||
[Token(Token = "0x4000C48")]
|
||||
IP = 0,
|
||||
/// <summary>
|
||||
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to IPv6 sockets.</summary>
|
||||
// Token: 0x04000C49 RID: 3145
|
||||
[Token(Token = "0x4000C49")]
|
||||
IPv6 = 41,
|
||||
/// <summary>
|
||||
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to TCP sockets.</summary>
|
||||
// Token: 0x04000C4A RID: 3146
|
||||
[Token(Token = "0x4000C4A")]
|
||||
Tcp = 6,
|
||||
/// <summary>
|
||||
/// <see cref="T:System.Net.Sockets.Socket" /> options apply only to UDP sockets.</summary>
|
||||
// Token: 0x04000C4B RID: 3147
|
||||
[Token(Token = "0x4000C4B")]
|
||||
Udp = 17
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Defines configuration option names.</summary>
|
||||
// Token: 0x020002E3 RID: 739
|
||||
[Token(Token = "0x20002E3")]
|
||||
public enum SocketOptionName
|
||||
{
|
||||
/// <summary>Record debugging information.</summary>
|
||||
// Token: 0x04000C4D RID: 3149
|
||||
[Token(Token = "0x4000C4D")]
|
||||
Debug = 1,
|
||||
/// <summary>The socket is listening.</summary>
|
||||
// Token: 0x04000C4E RID: 3150
|
||||
[Token(Token = "0x4000C4E")]
|
||||
AcceptConnection,
|
||||
/// <summary>Allows the socket to be bound to an address that is already in use.</summary>
|
||||
// Token: 0x04000C4F RID: 3151
|
||||
[Token(Token = "0x4000C4F")]
|
||||
ReuseAddress = 4,
|
||||
/// <summary>Use keep-alives.</summary>
|
||||
// Token: 0x04000C50 RID: 3152
|
||||
[Token(Token = "0x4000C50")]
|
||||
KeepAlive = 8,
|
||||
/// <summary>Do not route; send the packet directly to the interface addresses.</summary>
|
||||
// Token: 0x04000C51 RID: 3153
|
||||
[Token(Token = "0x4000C51")]
|
||||
DontRoute = 16,
|
||||
/// <summary>Permit sending broadcast messages on the socket.</summary>
|
||||
// Token: 0x04000C52 RID: 3154
|
||||
[Token(Token = "0x4000C52")]
|
||||
Broadcast = 32,
|
||||
/// <summary>Bypass hardware when possible.</summary>
|
||||
// Token: 0x04000C53 RID: 3155
|
||||
[Token(Token = "0x4000C53")]
|
||||
UseLoopback = 64,
|
||||
/// <summary>Linger on close if unsent data is present.</summary>
|
||||
// Token: 0x04000C54 RID: 3156
|
||||
[Token(Token = "0x4000C54")]
|
||||
Linger = 128,
|
||||
/// <summary>Receives out-of-band data in the normal data stream.</summary>
|
||||
// Token: 0x04000C55 RID: 3157
|
||||
[Token(Token = "0x4000C55")]
|
||||
OutOfBandInline = 256,
|
||||
/// <summary>Close the socket gracefully without lingering.</summary>
|
||||
// Token: 0x04000C56 RID: 3158
|
||||
[Token(Token = "0x4000C56")]
|
||||
DontLinger = -129,
|
||||
/// <summary>Enables a socket to be bound for exclusive access.</summary>
|
||||
// Token: 0x04000C57 RID: 3159
|
||||
[Token(Token = "0x4000C57")]
|
||||
ExclusiveAddressUse = -5,
|
||||
/// <summary>Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.</summary>
|
||||
// Token: 0x04000C58 RID: 3160
|
||||
[Token(Token = "0x4000C58")]
|
||||
SendBuffer = 4097,
|
||||
/// <summary>Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.</summary>
|
||||
// Token: 0x04000C59 RID: 3161
|
||||
[Token(Token = "0x4000C59")]
|
||||
ReceiveBuffer,
|
||||
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Send" /> operations.</summary>
|
||||
// Token: 0x04000C5A RID: 3162
|
||||
[Token(Token = "0x4000C5A")]
|
||||
SendLowWater,
|
||||
/// <summary>Specifies the low water mark for <see cref="Overload:System.Net.Sockets.Socket.Receive" /> operations.</summary>
|
||||
// Token: 0x04000C5B RID: 3163
|
||||
[Token(Token = "0x4000C5B")]
|
||||
ReceiveLowWater,
|
||||
/// <summary>Send a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</summary>
|
||||
// Token: 0x04000C5C RID: 3164
|
||||
[Token(Token = "0x4000C5C")]
|
||||
SendTimeout,
|
||||
/// <summary>Receive a time-out. This option applies only to synchronous methods; it has no effect on asynchronous methods such as the <see cref="M:System.Net.Sockets.Socket.BeginSend(System.Byte[],System.Int32,System.Int32,System.Net.Sockets.SocketFlags,System.AsyncCallback,System.Object)" /> method.</summary>
|
||||
// Token: 0x04000C5D RID: 3165
|
||||
[Token(Token = "0x4000C5D")]
|
||||
ReceiveTimeout,
|
||||
/// <summary>Gets the error status and clear.</summary>
|
||||
// Token: 0x04000C5E RID: 3166
|
||||
[Token(Token = "0x4000C5E")]
|
||||
Error,
|
||||
/// <summary>Gets the socket type.</summary>
|
||||
// Token: 0x04000C5F RID: 3167
|
||||
[Token(Token = "0x4000C5F")]
|
||||
Type,
|
||||
/// <summary>Indicates that the system should defer ephemeral port allocation for outbound connections. This is equivalent to using the Winsock2 SO_REUSE_UNICASTPORT socket option.</summary>
|
||||
// Token: 0x04000C60 RID: 3168
|
||||
[Token(Token = "0x4000C60")]
|
||||
ReuseUnicastPort = 12295,
|
||||
/// <summary>Not supported; will throw a <see cref="T:System.Net.Sockets.SocketException" /> if used.</summary>
|
||||
// Token: 0x04000C61 RID: 3169
|
||||
[Token(Token = "0x4000C61")]
|
||||
MaxConnections = 2147483647,
|
||||
/// <summary>Specifies the IP options to be inserted into outgoing datagrams.</summary>
|
||||
// Token: 0x04000C62 RID: 3170
|
||||
[Token(Token = "0x4000C62")]
|
||||
IPOptions = 1,
|
||||
/// <summary>Indicates that the application provides the IP header for outgoing datagrams.</summary>
|
||||
// Token: 0x04000C63 RID: 3171
|
||||
[Token(Token = "0x4000C63")]
|
||||
HeaderIncluded,
|
||||
/// <summary>Change the IP header type of the service field.</summary>
|
||||
// Token: 0x04000C64 RID: 3172
|
||||
[Token(Token = "0x4000C64")]
|
||||
TypeOfService,
|
||||
/// <summary>Set the IP header Time-to-Live field.</summary>
|
||||
// Token: 0x04000C65 RID: 3173
|
||||
[Token(Token = "0x4000C65")]
|
||||
IpTimeToLive,
|
||||
/// <summary>Set the interface for outgoing multicast packets.</summary>
|
||||
// Token: 0x04000C66 RID: 3174
|
||||
[Token(Token = "0x4000C66")]
|
||||
MulticastInterface = 9,
|
||||
/// <summary>An IP multicast Time to Live.</summary>
|
||||
// Token: 0x04000C67 RID: 3175
|
||||
[Token(Token = "0x4000C67")]
|
||||
MulticastTimeToLive,
|
||||
/// <summary>An IP multicast loopback.</summary>
|
||||
// Token: 0x04000C68 RID: 3176
|
||||
[Token(Token = "0x4000C68")]
|
||||
MulticastLoopback,
|
||||
/// <summary>Add an IP group membership.</summary>
|
||||
// Token: 0x04000C69 RID: 3177
|
||||
[Token(Token = "0x4000C69")]
|
||||
AddMembership,
|
||||
/// <summary>Drop an IP group membership.</summary>
|
||||
// Token: 0x04000C6A RID: 3178
|
||||
[Token(Token = "0x4000C6A")]
|
||||
DropMembership,
|
||||
/// <summary>Do not fragment IP datagrams.</summary>
|
||||
// Token: 0x04000C6B RID: 3179
|
||||
[Token(Token = "0x4000C6B")]
|
||||
DontFragment,
|
||||
/// <summary>Join a source group.</summary>
|
||||
// Token: 0x04000C6C RID: 3180
|
||||
[Token(Token = "0x4000C6C")]
|
||||
AddSourceMembership,
|
||||
/// <summary>Drop a source group.</summary>
|
||||
// Token: 0x04000C6D RID: 3181
|
||||
[Token(Token = "0x4000C6D")]
|
||||
DropSourceMembership,
|
||||
/// <summary>Block data from a source.</summary>
|
||||
// Token: 0x04000C6E RID: 3182
|
||||
[Token(Token = "0x4000C6E")]
|
||||
BlockSource,
|
||||
/// <summary>Unblock a previously blocked source.</summary>
|
||||
// Token: 0x04000C6F RID: 3183
|
||||
[Token(Token = "0x4000C6F")]
|
||||
UnblockSource,
|
||||
/// <summary>Return information about received packets.</summary>
|
||||
// Token: 0x04000C70 RID: 3184
|
||||
[Token(Token = "0x4000C70")]
|
||||
PacketInformation,
|
||||
/// <summary>Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4.</summary>
|
||||
// Token: 0x04000C71 RID: 3185
|
||||
[Token(Token = "0x4000C71")]
|
||||
HopLimit = 21,
|
||||
/// <summary>Enables restriction of a IPv6 socket to a specified scope, such as addresses with the same link local or site local prefix.This socket option enables applications to place access restrictions on IPv6 sockets. Such restrictions enable an application running on a private LAN to simply and robustly harden itself against external attacks. This socket option widens or narrows the scope of a listening socket, enabling unrestricted access from public and private users when appropriate, or restricting access only to the same site, as required. This socket option has defined protection levels specified in the <see cref="T:System.Net.Sockets.IPProtectionLevel" /> enumeration.</summary>
|
||||
// Token: 0x04000C72 RID: 3186
|
||||
[Token(Token = "0x4000C72")]
|
||||
IPProtectionLevel = 23,
|
||||
/// <summary>Indicates if a socket created for the AF_INET6 address family is restricted to IPv6 communications only. Sockets created for the AF_INET6 address family may be used for both IPv6 and IPv4 communications. Some applications may want to restrict their use of a socket created for the AF_INET6 address family to IPv6 communications only. When this value is non-zero (the default on Windows), a socket created for the AF_INET6 address family can be used to send and receive IPv6 packets only. When this value is zero, a socket created for the AF_INET6 address family can be used to send and receive packets to and from an IPv6 address or an IPv4 address. Note that the ability to interact with an IPv4 address requires the use of IPv4 mapped addresses. This socket option is supported on Windows Vista or later.</summary>
|
||||
// Token: 0x04000C73 RID: 3187
|
||||
[Token(Token = "0x4000C73")]
|
||||
IPv6Only = 27,
|
||||
/// <summary>Disables the Nagle algorithm for send coalescing.</summary>
|
||||
// Token: 0x04000C74 RID: 3188
|
||||
[Token(Token = "0x4000C74")]
|
||||
NoDelay = 1,
|
||||
/// <summary>Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.</summary>
|
||||
// Token: 0x04000C75 RID: 3189
|
||||
[Token(Token = "0x4000C75")]
|
||||
BsdUrgent,
|
||||
/// <summary>Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.</summary>
|
||||
// Token: 0x04000C76 RID: 3190
|
||||
[Token(Token = "0x4000C76")]
|
||||
Expedited = 2,
|
||||
/// <summary>Send UDP datagrams with checksum set to zero.</summary>
|
||||
// Token: 0x04000C77 RID: 3191
|
||||
[Token(Token = "0x4000C77")]
|
||||
NoChecksum = 1,
|
||||
/// <summary>Set or get the UDP checksum coverage.</summary>
|
||||
// Token: 0x04000C78 RID: 3192
|
||||
[Token(Token = "0x4000C78")]
|
||||
ChecksumCoverage = 20,
|
||||
/// <summary>Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets.</summary>
|
||||
// Token: 0x04000C79 RID: 3193
|
||||
[Token(Token = "0x4000C79")]
|
||||
UpdateAcceptContext = 28683,
|
||||
/// <summary>Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets.</summary>
|
||||
// Token: 0x04000C7A RID: 3194
|
||||
[Token(Token = "0x4000C7A")]
|
||||
UpdateConnectContext = 28688
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002E4 RID: 740
|
||||
[Token(Token = "0x20002E4")]
|
||||
public enum SocketShutdown
|
||||
{
|
||||
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for receiving. This field is constant.</summary>
|
||||
// Token: 0x04000C7C RID: 3196
|
||||
[Token(Token = "0x4000C7C")]
|
||||
Receive,
|
||||
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for sending. This field is constant.</summary>
|
||||
// Token: 0x04000C7D RID: 3197
|
||||
[Token(Token = "0x4000C7D")]
|
||||
Send,
|
||||
/// <summary>Disables a <see cref="T:System.Net.Sockets.Socket" /> for both sending and receiving. This field is constant.</summary>
|
||||
// Token: 0x04000C7E RID: 3198
|
||||
[Token(Token = "0x4000C7E")]
|
||||
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: 0x020002ED RID: 749
|
||||
[Token(Token = "0x20002ED")]
|
||||
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: 0x06001416 RID: 5142 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001416")]
|
||||
[Address(RVA = "0xAE15D0", Offset = "0xAE05D0", VA = "0x180AE15D0")]
|
||||
public static Task ConnectAsync(this Socket socket, IPAddress address, int port)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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: 0x020002E5 RID: 741
|
||||
[Token(Token = "0x20002E5")]
|
||||
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: 0x04000C80 RID: 3200
|
||||
[Token(Token = "0x4000C80")]
|
||||
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: 0x04000C81 RID: 3201
|
||||
[Token(Token = "0x4000C81")]
|
||||
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: 0x04000C82 RID: 3202
|
||||
[Token(Token = "0x4000C82")]
|
||||
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: 0x04000C83 RID: 3203
|
||||
[Token(Token = "0x4000C83")]
|
||||
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: 0x04000C84 RID: 3204
|
||||
[Token(Token = "0x4000C84")]
|
||||
Seqpacket,
|
||||
/// <summary>Specifies an unknown <see cref="T:System.Net.Sockets.Socket" /> type.</summary>
|
||||
// Token: 0x04000C85 RID: 3205
|
||||
[Token(Token = "0x4000C85")]
|
||||
Unknown = -1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Provides client connections for TCP network services.</summary>
|
||||
// Token: 0x020002E6 RID: 742
|
||||
[Token(Token = "0x20002E6")]
|
||||
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: 0x060013E3 RID: 5091 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013E3")]
|
||||
[Address(RVA = "0xAEAEA0", Offset = "0xAE9EA0", VA = "0x180AEAEA0")]
|
||||
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: 0x060013E4 RID: 5092 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013E4")]
|
||||
[Address(RVA = "0xAEB030", Offset = "0xAEA030", VA = "0x180AEB030")]
|
||||
public TcpClient(string hostname, int port)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013E5 RID: 5093 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013E5")]
|
||||
[Address(RVA = "0xAEAFE0", Offset = "0xAE9FE0", VA = "0x180AEAFE0")]
|
||||
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: 0x17000409 RID: 1033
|
||||
// (get) Token: 0x060013E6 RID: 5094 RVA: 0x00002050 File Offset: 0x00000250
|
||||
// (set) Token: 0x060013E7 RID: 5095 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x17000409")]
|
||||
public Socket Client
|
||||
{
|
||||
[Token(Token = "0x60013E6")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
[Token(Token = "0x60013E7")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
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: 0x1700040A RID: 1034
|
||||
// (get) Token: 0x060013E8 RID: 5096 RVA: 0x000091C8 File Offset: 0x000073C8
|
||||
[Token(Token = "0x1700040A")]
|
||||
public bool Connected
|
||||
{
|
||||
[Token(Token = "0x60013E8")]
|
||||
[Address(RVA = "0xAEB1E0", Offset = "0xAEA1E0", VA = "0x180AEB1E0")]
|
||||
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: 0x060013E9 RID: 5097 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013E9")]
|
||||
[Address(RVA = "0xAEA610", Offset = "0xAE9610", VA = "0x180AEA610")]
|
||||
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: 0x060013EA RID: 5098 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013EA")]
|
||||
[Address(RVA = "0xAEA520", Offset = "0xAE9520", VA = "0x180AEA520")]
|
||||
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: 0x060013EB RID: 5099 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013EB")]
|
||||
[Address(RVA = "0xAEA340", Offset = "0xAE9340", VA = "0x180AEA340")]
|
||||
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: 0x060013EC RID: 5100 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013EC")]
|
||||
[Address(RVA = "0xAEAC90", Offset = "0xAE9C90", VA = "0x180AEAC90")]
|
||||
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: 0x060013ED RID: 5101 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013ED")]
|
||||
[Address(RVA = "0xAEAD70", Offset = "0xAE9D70", VA = "0x180AEAD70")]
|
||||
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: 0x060013EE RID: 5102 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013EE")]
|
||||
[Address(RVA = "0xAEA4E0", Offset = "0xAE94E0", VA = "0x180AEA4E0")]
|
||||
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: 0x060013EF RID: 5103 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013EF")]
|
||||
[Address(RVA = "0xAEAB80", Offset = "0xAE9B80", VA = "0x180AEAB80", 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: 0x060013F0 RID: 5104 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F0")]
|
||||
[Address(RVA = "0x8A0300", Offset = "0x89F300", VA = "0x1808A0300", Slot = "4")]
|
||||
public void Dispose()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Frees resources used by the <see cref="T:System.Net.Sockets.TcpClient" /> class.</summary>
|
||||
// Token: 0x060013F1 RID: 5105 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F1")]
|
||||
[Address(RVA = "0xAEACF0", Offset = "0xAE9CF0", VA = "0x180AEACF0", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060013F2 RID: 5106 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F2")]
|
||||
[Address(RVA = "0xAEB200", Offset = "0xAEA200", VA = "0x180AEB200")]
|
||||
private void initialize()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000C86 RID: 3206
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000C86")]
|
||||
private Socket m_ClientSocket;
|
||||
|
||||
// Token: 0x04000C87 RID: 3207
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000C87")]
|
||||
private bool m_Active;
|
||||
|
||||
// Token: 0x04000C88 RID: 3208
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000C88")]
|
||||
private NetworkStream m_DataStream;
|
||||
|
||||
// Token: 0x04000C89 RID: 3209
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000C89")]
|
||||
private AddressFamily m_Family;
|
||||
|
||||
// Token: 0x04000C8A RID: 3210
|
||||
[FieldOffset(Offset = "0x2C")]
|
||||
[Token(Token = "0x4000C8A")]
|
||||
private bool m_CleanedUp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Listens for connections from TCP network clients.</summary>
|
||||
// Token: 0x020002E7 RID: 743
|
||||
[Token(Token = "0x20002E7")]
|
||||
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: 0x060013F3 RID: 5107 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F3")]
|
||||
[Address(RVA = "0xAEBA40", Offset = "0xAEAA40", VA = "0x180AEBA40")]
|
||||
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: 0x1700040B RID: 1035
|
||||
// (get) Token: 0x060013F4 RID: 5108 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x1700040B")]
|
||||
public EndPoint LocalEndpoint
|
||||
{
|
||||
[Token(Token = "0x60013F4")]
|
||||
[Address(RVA = "0xAEBBB0", Offset = "0xAEABB0", VA = "0x180AEBBB0")]
|
||||
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: 0x060013F5 RID: 5109 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F5")]
|
||||
[Address(RVA = "0xAEB8F0", Offset = "0xAEA8F0", VA = "0x180AEB8F0")]
|
||||
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: 0x060013F6 RID: 5110 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F6")]
|
||||
[Address(RVA = "0xAEB5B0", Offset = "0xAEA5B0", VA = "0x180AEB5B0")]
|
||||
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: 0x060013F7 RID: 5111 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60013F7")]
|
||||
[Address(RVA = "0xAEB900", Offset = "0xAEA900", VA = "0x180AEB900")]
|
||||
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: 0x060013F8 RID: 5112 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013F8")]
|
||||
[Address(RVA = "0xAEB280", Offset = "0xAEA280", VA = "0x180AEB280")]
|
||||
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: 0x060013F9 RID: 5113 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60013F9")]
|
||||
[Address(RVA = "0xAEB480", Offset = "0xAEA480", VA = "0x180AEB480")]
|
||||
public TcpClient EndAcceptTcpClient(IAsyncResult asyncResult)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x04000C8B RID: 3211
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4000C8B")]
|
||||
private IPEndPoint m_ServerSocketEP;
|
||||
|
||||
// Token: 0x04000C8C RID: 3212
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4000C8C")]
|
||||
private Socket m_ServerSocket;
|
||||
|
||||
// Token: 0x04000C8D RID: 3213
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4000C8D")]
|
||||
private bool m_Active;
|
||||
|
||||
// Token: 0x04000C8E RID: 3214
|
||||
[FieldOffset(Offset = "0x21")]
|
||||
[Token(Token = "0x4000C8E")]
|
||||
private bool m_ExclusiveAddressUse;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user