using System; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; using Cpp2IlInjected; namespace System.Net.Sockets { /// Provides the underlying stream of data for network access. // Token: 0x020002DC RID: 732 [Token(Token = "0x20002DC")] public class NetworkStream : Stream { /// Creates a new instance of the class for the specified . /// The that the will use to send and receive data. /// The parameter is . /// The parameter is not connected. /// -or- /// The property of the parameter is not . /// -or- /// The parameter is in a nonblocking state. // Token: 0x0600133A RID: 4922 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600133A")] [Address(RVA = "0x2623980", Offset = "0x2622780", VA = "0x182623980")] public NetworkStream(Socket socket) { } /// Initializes a new instance of the class for the specified with the specified ownership. /// The that the will use to send and receive data. /// Set to to indicate that the will take ownership of the ; otherwise, . /// The parameter is . /// The parameter is not connected. /// -or- /// the value of the property of the parameter is not . /// -or- /// the parameter is in a nonblocking state. // 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) { } /// Gets a value that indicates whether the supports reading. /// /// if data can be read from the stream; otherwise, . The default value is . // 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); } } /// Gets a value that indicates whether the stream supports seeking. This property is not currently supported.This property always returns . /// /// in all cases to indicate that cannot seek a specific location in the stream. // 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); } } /// Gets a value that indicates whether the supports writing. /// /// if data can be written to the ; otherwise, . The default value is . // 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); } } /// Gets or sets the amount of time that a read operation blocks waiting for data. /// A that specifies the amount of time, in milliseconds, that will elapse before a read operation fails. The default value, , specifies that the read operation does not time out. /// The value specified is less than or equal to zero and is not . // 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; } } /// Gets or sets the amount of time that a write operation blocks waiting for data. /// A that specifies the amount of time, in milliseconds, that will elapse before a write operation fails. The default value, , specifies that the write operation does not time out. /// The value specified is less than or equal to zero and is not . // 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; } } /// Gets a value that indicates whether data is available on the to be read. /// /// if data is available on the stream to be read; otherwise, . /// The is closed. /// The underlying is closed. /// Use the 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. // 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); } } /// Gets the length of the data available on the stream. This property is not currently supported and always throws a . /// The length of the data available on the stream. /// Any use of this property. // 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; } } /// Gets or sets the current position in the stream. This property is not currently supported and always throws a . /// The current position in the stream. /// Any use of this property. // 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 { } } /// Sets the current position of the stream to the given value. This method is not currently supported and always throws a . /// This parameter is not used. /// This parameter is not used. /// The position in the stream. /// Any use of this property. // 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) { } /// Reads data from the . /// An array of type that is the location in memory to store data read from the . /// The location in to begin storing the data to. /// The number of bytes to read from the . /// The number of bytes read from the , or 0 if the socket is closed. /// The parameter is . /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of . /// -or- /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of minus the value of the parameter. /// -or- /// An error occurred when accessing the socket. /// The underlying is closed. /// The is closed. /// -or- /// There is a failure reading from the network. // 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; } /// Writes data to the . /// An array of type that contains the data to write to the . /// The location in from which to start writing data. /// The number of bytes to write to the . /// The parameter is . /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of . /// -or- /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of minus the value of the parameter. /// There was a failure while writing to the network. /// -or- /// An error occurred when accessing the socket. /// The is closed. /// -or- /// There was a failure reading from the network. // 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) { } /// Releases the unmanaged resources used by the and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // 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) { } /// Releases all resources used by the . // 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() { } /// Begins an asynchronous read from the . /// An array of type that is the location in memory to store data read from the . /// The location in to begin storing the data. /// The number of bytes to read from the . /// The delegate that is executed when completes. /// An object that contains any additional user-defined data. /// An that represents the asynchronous call. /// The parameter is . /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of the paramater. /// -or- /// The is less than 0. /// -or- /// The is greater than the length of minus the value of the parameter. /// The underlying is closed. /// -or- /// There was a failure while reading from the network. /// -or- /// An error occurred when accessing the socket. /// The is closed. // 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; } /// Handles the end of an asynchronous read. /// An that represents an asynchronous call. /// The number of bytes read from the . /// The parameter is . /// The underlying is closed. /// -or- /// An error occurred when accessing the socket. /// The is closed. // 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; } /// Begins an asynchronous write to a stream. /// An array of type that contains the data to write to the . /// The location in to begin sending the data. /// The number of bytes to write to the . /// The delegate that is executed when completes. /// An object that contains any additional user-defined data. /// An that represents the asynchronous call. /// The parameter is . /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of . /// -or- /// The parameter is less than 0. /// -or- /// The parameter is greater than the length of minus the value of the parameter. /// The underlying is closed. /// -or- /// There was a failure while writing to the network. /// -or- /// An error occurred when accessing the socket. /// The is closed. // 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; } /// Handles the end of an asynchronous write. /// The that represents the asynchronous call. /// The parameter is . /// The underlying is closed. /// -or- /// An error occurred while writing to the network. /// -or- /// An error occurred when accessing the socket. /// The is closed. // 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) { } /// Flushes data from the stream. This method is reserved for future use. // 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() { } /// Flushes data from the stream as an asynchronous operation. /// A cancellation token used to propagate notification that this operation should be canceled. /// The task object representing the asynchronous operation. // 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; } /// Sets the length of the stream. This method always throws a . /// This parameter is not used. /// Any use of this property. // 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; } }