m
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace System.Net.WebSockets
|
||||
{
|
||||
/// <summary>Provides a client for connecting to WebSocket services.</summary>
|
||||
// Token: 0x0200031B RID: 795
|
||||
[Token(Token = "0x200031B")]
|
||||
public sealed class ClientWebSocket : WebSocket
|
||||
{
|
||||
/// <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> class.</summary>
|
||||
// Token: 0x060014BB RID: 5307 RVA: 0x00002053 File Offset: 0x00000253
|
||||
[Token(Token = "0x60014BB")]
|
||||
[Address(RVA = "0x768480", Offset = "0x767480", VA = "0x180768480")]
|
||||
public ClientWebSocket()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Gets the WebSocket options for the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance.</summary>
|
||||
/// <returns>The WebSocket options for the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Gets the WebSocket state of the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance.</summary>
|
||||
/// <returns>The WebSocket state of the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance.</returns>
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Connect to a WebSocket server as an asynchronous operation.</summary>
|
||||
/// <param name="uri">The URI of the WebSocket server to connect to.</param>
|
||||
/// <param name="cancellationToken">A cancellation token used to propagate notification that the operation should be canceled.</param>
|
||||
/// <returns>The task object representing the asynchronous operation.</returns>
|
||||
// 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;
|
||||
}
|
||||
|
||||
/// <summary>Send data on <see cref="T:System.Net.WebSockets.ClientWebSocket" /> as an asynchronous operation.</summary>
|
||||
/// <param name="buffer">The buffer containing the message to be sent.</param>
|
||||
/// <param name="messageType">Specifies whether the buffer is clear text or in a binary format.</param>
|
||||
/// <param name="endOfMessage">Specifies whether this is the final asynchronous send. Set to <see langword="true" /> if this is the final send; <see langword="false" /> otherwise.</param>
|
||||
/// <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: 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<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Receives data on <see cref="T:System.Net.WebSockets.ClientWebSocket" /> as an asynchronous operation.</summary>
|
||||
/// <param name="buffer">The buffer to receive the response.</param>
|
||||
/// <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: 0x060014C1 RID: 5313 RVA: 0x00002050 File Offset: 0x00000250
|
||||
[Token(Token = "0x60014C1")]
|
||||
[Address(RVA = "0x7682B0", Offset = "0x7672B0", VA = "0x1807682B0", Slot = "9")]
|
||||
public override Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>Close the output for the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance as an asynchronous operation.</summary>
|
||||
/// <param name="closeStatus">The WebSocket close status.</param>
|
||||
/// <param name="statusDescription">A description of the close status.</param>
|
||||
/// <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: 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;
|
||||
}
|
||||
|
||||
/// <summary>Aborts the connection and cancels any pending IO operations.</summary>
|
||||
// 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()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.WebSockets.ClientWebSocket" /> instance.</summary>
|
||||
// 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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user