oh dear
This commit is contained in:
@@ -0,0 +1,448 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.Sockets
|
||||
{
|
||||
/// <summary>Provides the underlying stream of data for network access.</summary>
|
||||
// Token: 0x020002DC RID: 732
|
||||
[Token(Token = "0x20002DC")]
|
||||
public class NetworkStream : Stream
|
||||
{
|
||||
/// <summary>Creates a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" />.</summary>
|
||||
/// <param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
|
||||
/// -or-
|
||||
/// The <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
|
||||
/// -or-
|
||||
/// The <paramref name="socket" /> parameter is in a nonblocking state.</exception>
|
||||
// Token: 0x0600133A RID: 4922 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133A")]
|
||||
[Address(RVA = "0x2623980", Offset = "0x2622780", VA = "0x182623980")]
|
||||
public NetworkStream(Socket socket)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.NetworkStream" /> class for the specified <see cref="T:System.Net.Sockets.Socket" /> with the specified <see cref="T:System.Net.Sockets.Socket" /> ownership.</summary>
|
||||
/// <param name="socket">The <see cref="T:System.Net.Sockets.Socket" /> that the <see cref="T:System.Net.Sockets.NetworkStream" /> will use to send and receive data.</param>
|
||||
/// <param name="ownsSocket">Set to <see langword="true" /> to indicate that the <see cref="T:System.Net.Sockets.NetworkStream" /> will take ownership of the <see cref="T:System.Net.Sockets.Socket" />; otherwise, <see langword="false" />.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="socket" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The <paramref name="socket" /> parameter is not connected.
|
||||
/// -or-
|
||||
/// the value of the <see cref="P:System.Net.Sockets.Socket.SocketType" /> property of the <paramref name="socket" /> parameter is not <see cref="F:System.Net.Sockets.SocketType.Stream" />.
|
||||
/// -or-
|
||||
/// the <paramref name="socket" /> parameter is in a nonblocking state.</exception>
|
||||
// Token: 0x0600133B RID: 4923 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600133B")]
|
||||
[Address(RVA = "0x26238B0", Offset = "0x26226B0", VA = "0x1826238B0")]
|
||||
public NetworkStream(Socket socket, bool ownsSocket)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether the <see cref="T:System.Net.Sockets.NetworkStream" /> supports reading.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if data can be read from the stream; otherwise, <see langword="false" />. The default value is <see langword="true" />.</returns>
|
||||
// Token: 0x170003ED RID: 1005
|
||||
// (get) Token: 0x0600133C RID: 4924 RVA: 0x00008B50 File Offset: 0x00006D50
|
||||
[Token(Token = "0x170003ED")]
|
||||
public override bool CanRead
|
||||
{
|
||||
[Token(Token = "0x600133C")]
|
||||
[Address(RVA = "0x4364F0", Offset = "0x4352F0", VA = "0x1804364F0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether the stream supports seeking. This property is not currently supported.This property always returns <see langword="false" />.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="false" /> in all cases to indicate that <see cref="T:System.Net.Sockets.NetworkStream" /> cannot seek a specific location in the stream.</returns>
|
||||
// Token: 0x170003EE RID: 1006
|
||||
// (get) Token: 0x0600133D RID: 4925 RVA: 0x00008B68 File Offset: 0x00006D68
|
||||
[Token(Token = "0x170003EE")]
|
||||
public override bool CanSeek
|
||||
{
|
||||
[Token(Token = "0x600133D")]
|
||||
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether the <see cref="T:System.Net.Sockets.NetworkStream" /> supports writing.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if data can be written to the <see cref="T:System.Net.Sockets.NetworkStream" />; otherwise, <see langword="false" />. The default value is <see langword="true" />.</returns>
|
||||
// Token: 0x170003EF RID: 1007
|
||||
// (get) Token: 0x0600133E RID: 4926 RVA: 0x00008B80 File Offset: 0x00006D80
|
||||
[Token(Token = "0x170003EF")]
|
||||
public override bool CanWrite
|
||||
{
|
||||
[Token(Token = "0x600133E")]
|
||||
[Address(RVA = "0x4364D0", Offset = "0x4352D0", VA = "0x1804364D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the amount of time that a read operation blocks waiting for data.</summary>
|
||||
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a read operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the read operation does not time out.</returns>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
||||
// Token: 0x170003F0 RID: 1008
|
||||
// (get) Token: 0x0600133F RID: 4927 RVA: 0x00008B98 File Offset: 0x00006D98
|
||||
[Token(Token = "0x170003F0")]
|
||||
public override int ReadTimeout
|
||||
{
|
||||
[Token(Token = "0x600133F")]
|
||||
[Address(RVA = "0x2623CF0", Offset = "0x2622AF0", VA = "0x182623CF0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the amount of time that a write operation blocks waiting for data.</summary>
|
||||
/// <returns>A <see cref="T:System.Int32" /> that specifies the amount of time, in milliseconds, that will elapse before a write operation fails. The default value, <see cref="F:System.Threading.Timeout.Infinite" />, specifies that the write operation does not time out.</returns>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The value specified is less than or equal to zero and is not <see cref="F:System.Threading.Timeout.Infinite" />.</exception>
|
||||
// Token: 0x170003F1 RID: 1009
|
||||
// (get) Token: 0x06001340 RID: 4928 RVA: 0x00008BB0 File Offset: 0x00006DB0
|
||||
[Token(Token = "0x170003F1")]
|
||||
public override int WriteTimeout
|
||||
{
|
||||
[Token(Token = "0x6001340")]
|
||||
[Address(RVA = "0x2623D80", Offset = "0x2622B80", VA = "0x182623D80", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets a value that indicates whether data is available on the <see cref="T:System.Net.Sockets.NetworkStream" /> to be read.</summary>
|
||||
/// <returns>
|
||||
/// <see langword="true" /> if data is available on the stream to be read; otherwise, <see langword="false" />.</returns>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.</exception>
|
||||
/// <exception cref="T:System.Net.Sockets.SocketException">Use the <see cref="P:System.Net.Sockets.SocketException.ErrorCode" /> property to obtain the specific error code and refer to the Windows Sockets version 2 API error code documentation for a detailed description of the error.</exception>
|
||||
// Token: 0x170003F2 RID: 1010
|
||||
// (get) Token: 0x06001341 RID: 4929 RVA: 0x00008BC8 File Offset: 0x00006DC8
|
||||
[Token(Token = "0x170003F2")]
|
||||
public virtual bool DataAvailable
|
||||
{
|
||||
[Token(Token = "0x6001341")]
|
||||
[Address(RVA = "0x2623A40", Offset = "0x2622840", VA = "0x182623A40", Slot = "31")]
|
||||
get
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the length of the data available on the stream. This property is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
|
||||
/// <returns>The length of the data available on the stream.</returns>
|
||||
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
|
||||
// Token: 0x170003F3 RID: 1011
|
||||
// (get) Token: 0x06001342 RID: 4930 RVA: 0x00008BE0 File Offset: 0x00006DE0
|
||||
[Token(Token = "0x170003F3")]
|
||||
public override long Length
|
||||
{
|
||||
[Token(Token = "0x6001342")]
|
||||
[Address(RVA = "0x2623C10", Offset = "0x2622A10", VA = "0x182623C10", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the current position in the stream. This property is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
|
||||
/// <returns>The current position in the stream.</returns>
|
||||
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
|
||||
// Token: 0x170003F4 RID: 1012
|
||||
// (get) Token: 0x06001343 RID: 4931 RVA: 0x00008BF8 File Offset: 0x00006DF8
|
||||
// (set) Token: 0x06001344 RID: 4932 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x170003F4")]
|
||||
public override long Position
|
||||
{
|
||||
[Token(Token = "0x6001343")]
|
||||
[Address(RVA = "0x2623C80", Offset = "0x2622A80", VA = "0x182623C80", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
[Token(Token = "0x6001344")]
|
||||
[Address(RVA = "0x2623E10", Offset = "0x2622C10", VA = "0x182623E10", Slot = "12")]
|
||||
set
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Sets the current position of the stream to the given value. This method is not currently supported and always throws a <see cref="T:System.NotSupportedException" />.</summary>
|
||||
/// <param name="offset">This parameter is not used.</param>
|
||||
/// <param name="origin">This parameter is not used.</param>
|
||||
/// <returns>The position in the stream.</returns>
|
||||
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
|
||||
// Token: 0x06001345 RID: 4933 RVA: 0x00008C10 File Offset: 0x00006E10
|
||||
[Token(Token = "0x6001345")]
|
||||
[Address(RVA = "0x2622EC0", Offset = "0x2621CC0", VA = "0x182622EC0", Slot = "25")]
|
||||
public override long Seek(long offset, SeekOrigin origin)
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
// Token: 0x06001346 RID: 4934 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001346")]
|
||||
[Address(RVA = "0x26229D0", Offset = "0x26217D0", VA = "0x1826229D0")]
|
||||
internal void InitNetworkStream(Socket socket, FileAccess Access)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Reads data from the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
|
||||
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the location in memory to store data read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="offset">The location in <paramref name="buffer" /> to begin storing the data to.</param>
|
||||
/// <param name="size">The number of bytes to read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <returns>The number of bytes read from the <see cref="T:System.Net.Sockets.NetworkStream" />, or 0 if the socket is closed.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.
|
||||
/// -or-
|
||||
/// There is a failure reading from the network.</exception>
|
||||
// Token: 0x06001347 RID: 4935 RVA: 0x00008C28 File Offset: 0x00006E28
|
||||
[Token(Token = "0x6001347")]
|
||||
[Address(RVA = "0x2622B30", Offset = "0x2621930", VA = "0x182622B30", Slot = "27")]
|
||||
public override int Read([In] [Out] byte[] buffer, int offset, int size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Writes data to the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
|
||||
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="offset">The location in <paramref name="buffer" /> from which to start writing data.</param>
|
||||
/// <param name="size">The number of bytes to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">There was a failure while writing to the network.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.
|
||||
/// -or-
|
||||
/// There was a failure reading from the network.</exception>
|
||||
// Token: 0x06001348 RID: 4936 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001348")]
|
||||
[Address(RVA = "0x2623520", Offset = "0x2622320", VA = "0x182623520", Slot = "29")]
|
||||
public override void Write(byte[] buffer, int offset, int size)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Sockets.NetworkStream" /> and optionally releases the managed resources.</summary>
|
||||
/// <param name="disposing">
|
||||
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
|
||||
// Token: 0x06001349 RID: 4937 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001349")]
|
||||
[Address(RVA = "0x2622300", Offset = "0x2621100", VA = "0x182622300", Slot = "16")]
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases all resources used by the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
|
||||
// Token: 0x0600134A RID: 4938 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x600134A")]
|
||||
[Address(RVA = "0x2622900", Offset = "0x2621700", VA = "0x182622900", Slot = "1")]
|
||||
protected override void Finalize()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Begins an asynchronous read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</summary>
|
||||
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that is the location in memory to store data read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="offset">The location in <paramref name="buffer" /> to begin storing the data.</param>
|
||||
/// <param name="size">The number of bytes to read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that is executed when <see cref="M:System.Net.Sockets.NetworkStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> completes.</param>
|
||||
/// <param name="state">An object that contains any additional user-defined data.</param>
|
||||
/// <returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="offset" /> parameter is greater than the length of the <paramref name="buffer" /> paramater.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
|
||||
/// -or-
|
||||
/// There was a failure while reading from the network.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
|
||||
// Token: 0x0600134B RID: 4939 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600134B")]
|
||||
[Address(RVA = "0x2621BC0", Offset = "0x26209C0", VA = "0x182621BC0", Slot = "19")]
|
||||
public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600134C RID: 4940 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600134C")]
|
||||
[Address(RVA = "0x2622FA0", Offset = "0x2621DA0", VA = "0x182622FA0", Slot = "32")]
|
||||
internal virtual IAsyncResult UnsafeBeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Handles the end of an asynchronous read.</summary>
|
||||
/// <param name="asyncResult">An <see cref="T:System.IAsyncResult" /> that represents an asynchronous call.</param>
|
||||
/// <returns>The number of bytes read from the <see cref="T:System.Net.Sockets.NetworkStream" />.</returns>
|
||||
/// <exception cref="T:System.ArgumentException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
|
||||
// Token: 0x0600134D RID: 4941 RVA: 0x00008C40 File Offset: 0x00006E40
|
||||
[Token(Token = "0x600134D")]
|
||||
[Address(RVA = "0x26223E0", Offset = "0x26211E0", VA = "0x1826223E0", Slot = "20")]
|
||||
public override int EndRead(IAsyncResult asyncResult)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// <summary>Begins an asynchronous write to a stream.</summary>
|
||||
/// <param name="buffer">An array of type <see cref="T:System.Byte" /> that contains the data to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="offset">The location in <paramref name="buffer" /> to begin sending the data.</param>
|
||||
/// <param name="size">The number of bytes to write to the <see cref="T:System.Net.Sockets.NetworkStream" />.</param>
|
||||
/// <param name="callback">The <see cref="T:System.AsyncCallback" /> delegate that is executed when <see cref="M:System.Net.Sockets.NetworkStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)" /> completes.</param>
|
||||
/// <param name="state">An object that contains any additional user-defined data.</param>
|
||||
/// <returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="buffer" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="offset" /> parameter is greater than the length of <paramref name="buffer" />.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is less than 0.
|
||||
/// -or-
|
||||
/// The <paramref name="size" /> parameter is greater than the length of <paramref name="buffer" /> minus the value of the <paramref name="offset" /> parameter.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
|
||||
/// -or-
|
||||
/// There was a failure while writing to the network.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
|
||||
// Token: 0x0600134E RID: 4942 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600134E")]
|
||||
[Address(RVA = "0x2621F60", Offset = "0x2620D60", VA = "0x182621F60", Slot = "22")]
|
||||
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Token: 0x0600134F RID: 4943 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x600134F")]
|
||||
[Address(RVA = "0x2623240", Offset = "0x2622040", VA = "0x182623240", Slot = "33")]
|
||||
internal virtual IAsyncResult UnsafeBeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Handles the end of an asynchronous write.</summary>
|
||||
/// <param name="asyncResult">The <see cref="T:System.IAsyncResult" /> that represents the asynchronous call.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="asyncResult" /> parameter is <see langword="null" />.</exception>
|
||||
/// <exception cref="T:System.IO.IOException">The underlying <see cref="T:System.Net.Sockets.Socket" /> is closed.
|
||||
/// -or-
|
||||
/// An error occurred while writing to the network.
|
||||
/// -or-
|
||||
/// An error occurred when accessing the socket.</exception>
|
||||
/// <exception cref="T:System.ObjectDisposedException">The <see cref="T:System.Net.Sockets.NetworkStream" /> is closed.</exception>
|
||||
// Token: 0x06001350 RID: 4944 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001350")]
|
||||
[Address(RVA = "0x2622670", Offset = "0x2621470", VA = "0x182622670", Slot = "23")]
|
||||
public override void EndWrite(IAsyncResult asyncResult)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Flushes data from the stream. This method is reserved for future use.</summary>
|
||||
// Token: 0x06001351 RID: 4945 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001351")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Flushes data from the stream as an asynchronous operation.</summary>
|
||||
/// <param name="cancellationToken">A cancellation token used to propagate notification that this operation should be canceled.</param>
|
||||
/// <returns>The task object representing the asynchronous operation.</returns>
|
||||
// Token: 0x06001352 RID: 4946 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x6001352")]
|
||||
[Address(RVA = "0x2622980", Offset = "0x2621780", VA = "0x182622980", Slot = "18")]
|
||||
public override Task FlushAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Sets the length of the stream. This method always throws a <see cref="T:System.NotSupportedException" />.</summary>
|
||||
/// <param name="value">This parameter is not used.</param>
|
||||
/// <exception cref="T:System.NotSupportedException">Any use of this property.</exception>
|
||||
// Token: 0x06001353 RID: 4947 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x6001353")]
|
||||
[Address(RVA = "0x2622F30", Offset = "0x2621D30", VA = "0x182622F30", Slot = "26")]
|
||||
public override void SetLength(long value)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04000BC1 RID: 3009
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4000BC1")]
|
||||
private Socket m_StreamSocket;
|
||||
|
||||
// Token: 0x04000BC2 RID: 3010
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4000BC2")]
|
||||
private bool m_Readable;
|
||||
|
||||
// Token: 0x04000BC3 RID: 3011
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x31")]
|
||||
[Token(Token = "0x4000BC3")]
|
||||
private bool m_Writeable;
|
||||
|
||||
// Token: 0x04000BC4 RID: 3012
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x32")]
|
||||
[Token(Token = "0x4000BC4")]
|
||||
private bool m_OwnsSocket;
|
||||
|
||||
// Token: 0x04000BC5 RID: 3013
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x34")]
|
||||
[Token(Token = "0x4000BC5")]
|
||||
private int m_CloseTimeout;
|
||||
|
||||
// Token: 0x04000BC6 RID: 3014
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4000BC6")]
|
||||
private bool m_CleanedUp;
|
||||
|
||||
// Token: 0x04000BC7 RID: 3015
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")]
|
||||
[Token(Token = "0x4000BC7")]
|
||||
private int m_CurrentReadTimeout;
|
||||
|
||||
// Token: 0x04000BC8 RID: 3016
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4000BC8")]
|
||||
private int m_CurrentWriteTimeout;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user