using System; using System.Threading; using System.Threading.Tasks; using Cpp2IlInjected; namespace System.Net.WebSockets { /// Provides a client for connecting to WebSocket services. // Token: 0x0200031B RID: 795 [Token(Token = "0x200031B")] public sealed class ClientWebSocket : WebSocket { /// Creates an instance of the class. // Token: 0x060014BB RID: 5307 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014BB")] [Address(RVA = "0x768480", Offset = "0x767480", VA = "0x180768480")] public ClientWebSocket() { } /// Gets the WebSocket options for the instance. /// The WebSocket options for the instance. // Token: 0x17000434 RID: 1076 // (get) Token: 0x060014BC RID: 5308 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x17000434")] public ClientWebSocketOptions Options { [Token(Token = "0x60014BC")] [Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")] get { return null; } } /// Gets the WebSocket state of the instance. /// The WebSocket state of the instance. // Token: 0x17000435 RID: 1077 // (get) Token: 0x060014BD RID: 5309 RVA: 0x00009528 File Offset: 0x00007728 [Token(Token = "0x17000435")] public override WebSocketState State { [Token(Token = "0x60014BD")] [Address(RVA = "0x7686D0", Offset = "0x7676D0", VA = "0x1807686D0", 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: 0x060014BE RID: 5310 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014BE")] [Address(RVA = "0x767EF0", Offset = "0x766EF0", VA = "0x180767EF0")] public Task ConnectAsync(Uri uri, CancellationToken cancellationToken) { return null; } // Token: 0x060014BF RID: 5311 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014BF")] [Address(RVA = "0x767DF0", Offset = "0x766DF0", VA = "0x180767DF0")] 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: 0x060014C0 RID: 5312 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014C0")] [Address(RVA = "0x768320", Offset = "0x767320", VA = "0x180768320", 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: 0x060014C1 RID: 5313 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014C1")] [Address(RVA = "0x7682B0", Offset = "0x7672B0", VA = "0x1807682B0", 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: 0x060014C2 RID: 5314 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x60014C2")] [Address(RVA = "0x767D80", Offset = "0x766D80", VA = "0x180767D80", Slot = "7")] public override Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) { return null; } /// Aborts the connection and cancels any pending IO operations. // Token: 0x060014C3 RID: 5315 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014C3")] [Address(RVA = "0x767CD0", Offset = "0x766CD0", VA = "0x180767CD0", Slot = "6")] public override void Abort() { } /// Releases the unmanaged resources used by the instance. // Token: 0x060014C4 RID: 5316 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014C4")] [Address(RVA = "0x768200", Offset = "0x767200", VA = "0x180768200", Slot = "8")] public override void Dispose() { } // Token: 0x060014C5 RID: 5317 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x60014C5")] [Address(RVA = "0x7683B0", Offset = "0x7673B0", VA = "0x1807683B0")] private void ThrowIfNotConnected() { } // Token: 0x04000D89 RID: 3465 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4000D89")] private readonly ClientWebSocketOptions _options; // Token: 0x04000D8A RID: 3466 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4000D8A")] private WebSocketHandle _innerWebSocket; // Token: 0x04000D8B RID: 3467 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4000D8B")] private int _state; // Token: 0x0200031C RID: 796 [Token(Token = "0x200031C")] private enum InternalState { // Token: 0x04000D8D RID: 3469 [Token(Token = "0x4000D8D")] Created, // Token: 0x04000D8E RID: 3470 [Token(Token = "0x4000D8E")] Connecting, // Token: 0x04000D8F RID: 3471 [Token(Token = "0x4000D8F")] Connected, // Token: 0x04000D90 RID: 3472 [Token(Token = "0x4000D90")] Disposed } } }