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: 0x020002D8 RID: 728 [Token(Token = "0x20002D8")] 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: 0x06001324 RID: 4900 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001324")] [Address(RVA = "0xADEC60", Offset = "0xADDC60", VA = "0x180ADEC60")] 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: 0x06001325 RID: 4901 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001325")] [Address(RVA = "0xADEB90", Offset = "0xADDB90", VA = "0x180ADEB90")] 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: 0x170003E9 RID: 1001 // (get) Token: 0x06001326 RID: 4902 RVA: 0x00008B38 File Offset: 0x00006D38 [Token(Token = "0x170003E9")] public override bool CanRead { [Token(Token = "0x6001326")] [Address(RVA = "0x5AB2E0", Offset = "0x5AA2E0", VA = "0x1805AB2E0", Slot = "7")] get { return default(bool); } } /// 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: 0x170003EA RID: 1002 // (get) Token: 0x06001327 RID: 4903 RVA: 0x00008B50 File Offset: 0x00006D50 [Token(Token = "0x170003EA")] public override bool CanSeek { [Token(Token = "0x6001327")] [Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690", Slot = "8")] get { return default(bool); } } /// Gets a value that indicates whether the supports writing. /// /// if data can be written to the ; otherwise, . The default value is . // Token: 0x170003EB RID: 1003 // (get) Token: 0x06001328 RID: 4904 RVA: 0x00008B68 File Offset: 0x00006D68 [Token(Token = "0x170003EB")] public override bool CanWrite { [Token(Token = "0x6001328")] [Address(RVA = "0x8920D0", Offset = "0x8910D0", VA = "0x1808920D0", Slot = "9")] get { return default(bool); } } /// 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: 0x170003EC RID: 1004 // (get) Token: 0x06001329 RID: 4905 RVA: 0x00008B80 File Offset: 0x00006D80 [Token(Token = "0x170003EC")] public override int ReadTimeout { [Token(Token = "0x6001329")] [Address(RVA = "0xADEFD0", Offset = "0xADDFD0", VA = "0x180ADEFD0", Slot = "13")] get { return 0; } } /// 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: 0x170003ED RID: 1005 // (get) Token: 0x0600132A RID: 4906 RVA: 0x00008B98 File Offset: 0x00006D98 [Token(Token = "0x170003ED")] public override int WriteTimeout { [Token(Token = "0x600132A")] [Address(RVA = "0xADF060", Offset = "0xADE060", VA = "0x180ADF060", Slot = "14")] get { return 0; } } /// 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: 0x170003EE RID: 1006 // (get) Token: 0x0600132B RID: 4907 RVA: 0x00008BB0 File Offset: 0x00006DB0 [Token(Token = "0x170003EE")] public virtual bool DataAvailable { [Token(Token = "0x600132B")] [Address(RVA = "0xADED20", Offset = "0xADDD20", VA = "0x180ADED20", Slot = "31")] get { return default(bool); } } /// 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: 0x170003EF RID: 1007 // (get) Token: 0x0600132C RID: 4908 RVA: 0x00008BC8 File Offset: 0x00006DC8 [Token(Token = "0x170003EF")] public override long Length { [Token(Token = "0x600132C")] [Address(RVA = "0xADEEF0", Offset = "0xADDEF0", VA = "0x180ADEEF0", Slot = "10")] get { return 0L; } } /// 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: 0x170003F0 RID: 1008 // (get) Token: 0x0600132D RID: 4909 RVA: 0x00008BE0 File Offset: 0x00006DE0 // (set) Token: 0x0600132E RID: 4910 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x170003F0")] public override long Position { [Token(Token = "0x600132D")] [Address(RVA = "0xADEF60", Offset = "0xADDF60", VA = "0x180ADEF60", Slot = "11")] get { return 0L; } [Token(Token = "0x600132E")] [Address(RVA = "0xADF0F0", Offset = "0xADE0F0", VA = "0x180ADF0F0", Slot = "12")] set { } } /// 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: 0x0600132F RID: 4911 RVA: 0x00008BF8 File Offset: 0x00006DF8 [Token(Token = "0x600132F")] [Address(RVA = "0xADE1A0", Offset = "0xADD1A0", VA = "0x180ADE1A0", Slot = "25")] public override long Seek(long offset, SeekOrigin origin) { return 0L; } // Token: 0x06001330 RID: 4912 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001330")] [Address(RVA = "0xADDCB0", Offset = "0xADCCB0", VA = "0x180ADDCB0")] internal void InitNetworkStream(Socket socket, FileAccess Access) { } /// 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: 0x06001331 RID: 4913 RVA: 0x00008C10 File Offset: 0x00006E10 [Token(Token = "0x6001331")] [Address(RVA = "0xADDE10", Offset = "0xADCE10", VA = "0x180ADDE10", Slot = "27")] public override int Read([In] [Out] byte[] buffer, int offset, int size) { return 0; } /// 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: 0x06001332 RID: 4914 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001332")] [Address(RVA = "0xADE800", Offset = "0xADD800", VA = "0x180ADE800", Slot = "29")] public override void Write(byte[] buffer, int offset, int size) { } /// 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: 0x06001333 RID: 4915 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001333")] [Address(RVA = "0xADD5E0", Offset = "0xADC5E0", VA = "0x180ADD5E0", Slot = "16")] protected override void Dispose(bool disposing) { } /// Releases all resources used by the . // Token: 0x06001334 RID: 4916 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001334")] [Address(RVA = "0xADDBE0", Offset = "0xADCBE0", VA = "0x180ADDBE0", Slot = "1")] protected override void Finalize() { } /// 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: 0x06001335 RID: 4917 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001335")] [Address(RVA = "0xADCEA0", Offset = "0xADBEA0", VA = "0x180ADCEA0", Slot = "19")] public override IAsyncResult BeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state) { return null; } // Token: 0x06001336 RID: 4918 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001336")] [Address(RVA = "0xADE280", Offset = "0xADD280", VA = "0x180ADE280", Slot = "32")] internal virtual IAsyncResult UnsafeBeginRead(byte[] buffer, int offset, int size, AsyncCallback callback, object state) { return null; } /// 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: 0x06001337 RID: 4919 RVA: 0x00008C28 File Offset: 0x00006E28 [Token(Token = "0x6001337")] [Address(RVA = "0xADD6C0", Offset = "0xADC6C0", VA = "0x180ADD6C0", Slot = "20")] public override int EndRead(IAsyncResult asyncResult) { return 0; } /// 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: 0x06001338 RID: 4920 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001338")] [Address(RVA = "0xADD240", Offset = "0xADC240", VA = "0x180ADD240", Slot = "22")] public override IAsyncResult BeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state) { return null; } // Token: 0x06001339 RID: 4921 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x6001339")] [Address(RVA = "0xADE520", Offset = "0xADD520", VA = "0x180ADE520", Slot = "33")] internal virtual IAsyncResult UnsafeBeginWrite(byte[] buffer, int offset, int size, AsyncCallback callback, object state) { return null; } /// 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: 0x0600133A RID: 4922 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600133A")] [Address(RVA = "0xADD950", Offset = "0xADC950", VA = "0x180ADD950", Slot = "23")] public override void EndWrite(IAsyncResult asyncResult) { } /// Flushes data from the stream. This method is reserved for future use. // Token: 0x0600133B RID: 4923 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600133B")] [Address(RVA = "0x4242D0", Offset = "0x4232D0", VA = "0x1804242D0", Slot = "17")] public override void Flush() { } /// 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: 0x0600133C RID: 4924 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x600133C")] [Address(RVA = "0xADDC60", Offset = "0xADCC60", VA = "0x180ADDC60", Slot = "18")] public override Task FlushAsync(CancellationToken cancellationToken) { return null; } /// Sets the length of the stream. This method always throws a . /// This parameter is not used. /// Any use of this property. // Token: 0x0600133D RID: 4925 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600133D")] [Address(RVA = "0xADE210", Offset = "0xADD210", VA = "0x180ADE210", Slot = "26")] public override void SetLength(long value) { } // Token: 0x04000BB4 RID: 2996 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4000BB4")] private Socket m_StreamSocket; // Token: 0x04000BB5 RID: 2997 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4000BB5")] private bool m_Readable; // Token: 0x04000BB6 RID: 2998 [global::Cpp2IlInjected.FieldOffset(Offset = "0x31")] [Token(Token = "0x4000BB6")] private bool m_Writeable; // Token: 0x04000BB7 RID: 2999 [global::Cpp2IlInjected.FieldOffset(Offset = "0x32")] [Token(Token = "0x4000BB7")] private bool m_OwnsSocket; // Token: 0x04000BB8 RID: 3000 [global::Cpp2IlInjected.FieldOffset(Offset = "0x34")] [Token(Token = "0x4000BB8")] private int m_CloseTimeout; // Token: 0x04000BB9 RID: 3001 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4000BB9")] private bool m_CleanedUp; // Token: 0x04000BBA RID: 3002 [global::Cpp2IlInjected.FieldOffset(Offset = "0x3C")] [Token(Token = "0x4000BBA")] private int m_CurrentReadTimeout; // Token: 0x04000BBB RID: 3003 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4000BBB")] private int m_CurrentWriteTimeout; } }