2067 lines
116 KiB
C#
2067 lines
116 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|