using System; using System.Threading; using System.Threading.Tasks; using Cpp2IlInjected; namespace System.Net.WebSockets { /// Provides a client for connecting to WebSocket services. // Token: 0x0200031F RID: 799 [Token(Token = "0x200031F")] public sealed class ClientWebSocket : WebSocket { /// Creates an instance of the class. // Token: 0x060014D1 RID: 5329 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014D1")] [Address(RVA = "0x3F6BD0", Offset = "0x3F59D0", VA = "0x1803F6BD0")] public ClientWebSocket() { } /// Gets the WebSocket options for the instance. /// The WebSocket options for the instance. // Token: 0x17000438 RID: 1080 // (get) Token: 0x060014D2 RID: 5330 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x17000438")] public ClientWebSocketOptions Options { [Token(Token = "0x60014D2")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")] get { return null; } } /// Gets the WebSocket state of the instance. /// The WebSocket state of the instance. // Token: 0x17000439 RID: 1081 // (get) Token: 0x060014D3 RID: 5331 RVA: 0x00009540 File Offset: 0x00007740 [Token(Token = "0x17000439")] public override WebSocketState State { [Token(Token = "0x60014D3")] [Address(RVA = "0x3F6E30", Offset = "0x3F5C30", VA = "0x1803F6E30", Slot = "5")] get { return WebSocketState.None; } } /// Connect to a WebSocket server as an asynchronous operation. /// The URI of the WebSocket server to connect to. /// A cancellation token used to propagate notification that the operation should be canceled. /// The task object representing the asynchronous operation. // Token: 0x060014D4 RID: 5332 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014D4")] [Address(RVA = "0x3F6640", Offset = "0x3F5440", VA = "0x1803F6640")] public Task ConnectAsync(Uri uri, CancellationToken cancellationToken) { return null; } // Token: 0x060014D5 RID: 5333 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014D5")] [Address(RVA = "0x3F6540", Offset = "0x3F5340", VA = "0x1803F6540")] private Task ConnectAsyncCore(Uri uri, CancellationToken cancellationToken) { return null; } /// Send data on as an asynchronous operation. /// The buffer containing the message to be sent. /// Specifies whether the buffer is clear text or in a binary format. /// Specifies whether this is the final asynchronous send. Set to if this is the final send; otherwise. /// A cancellation token used to propagate notification that this operation should be canceled. /// The task object representing the asynchronous operation. // Token: 0x060014D6 RID: 5334 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014D6")] [Address(RVA = "0x3F6A70", Offset = "0x3F5870", VA = "0x1803F6A70", Slot = "10")] public override Task SendAsync(ArraySegment buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken) { return null; } /// Receives data on as an asynchronous operation. /// The buffer to receive the response. /// A cancellation token used to propagate notification that this operation should be canceled. /// The task object representing the asynchronous operation. // Token: 0x060014D7 RID: 5335 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014D7")] [Address(RVA = "0x3F6A00", Offset = "0x3F5800", VA = "0x1803F6A00", Slot = "9")] public override Task ReceiveAsync(ArraySegment buffer, CancellationToken cancellationToken) { return null; } /// Close the output for the instance as an asynchronous operation. /// The WebSocket close status. /// A description of the close status. /// A cancellation token used to propagate notification that this operation should be canceled. /// The task object representing the asynchronous operation. // Token: 0x060014D8 RID: 5336 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014D8")] [Address(RVA = "0x3F64D0", Offset = "0x3F52D0", VA = "0x1803F64D0", Slot = "7")] public override Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) { return null; } /// Aborts the connection and cancels any pending IO operations. // Token: 0x060014D9 RID: 5337 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014D9")] [Address(RVA = "0x3F6420", Offset = "0x3F5220", VA = "0x1803F6420", Slot = "6")] public override void Abort() { } /// Releases the unmanaged resources used by the instance. // Token: 0x060014DA RID: 5338 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014DA")] [Address(RVA = "0x3F6950", Offset = "0x3F5750", VA = "0x1803F6950", Slot = "8")] public override void Dispose() { } // Token: 0x060014DB RID: 5339 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014DB")] [Address(RVA = "0x3F6B00", Offset = "0x3F5900", VA = "0x1803F6B00")] private void ThrowIfNotConnected() { } // Token: 0x04000D96 RID: 3478 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4000D96")] private readonly ClientWebSocketOptions _options; // Token: 0x04000D97 RID: 3479 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4000D97")] private WebSocketHandle _innerWebSocket; // Token: 0x04000D98 RID: 3480 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4000D98")] private int _state; // Token: 0x02000320 RID: 800 [Token(Token = "0x2000320")] private enum InternalState { // Token: 0x04000D9A RID: 3482 [Token(Token = "0x4000D9A")] Created, // Token: 0x04000D9B RID: 3483 [Token(Token = "0x4000D9B")] Connecting, // Token: 0x04000D9C RID: 3484 [Token(Token = "0x4000D9C")] Connected, // Token: 0x04000D9D RID: 3485 [Token(Token = "0x4000D9D")] Disposed } } }