Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.WebSockets.ClientWebSocket Class Referencesealed

Public Member Functions

 ClientWebSocket ()
 
Task ConnectAsync (Uri uri, CancellationToken cancellationToken)
 
override Task SendAsync (ArraySegment< byte > buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)
 
override ValueTask SendAsync (ReadOnlyMemory< byte > buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)
 
override Task< WebSocketReceiveResultReceiveAsync (ArraySegment< byte > buffer, CancellationToken cancellationToken)
 
override ValueTask< ValueWebSocketReceiveResultReceiveAsync (Memory< byte > buffer, CancellationToken cancellationToken)
 
override Task CloseAsync (WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
 
override Task CloseOutputAsync (WebSocketCloseStatus closeStatus, string? statusDescription, CancellationToken cancellationToken)
 
override void Abort ()
 
override void Dispose ()
 
virtual ValueTask SendAsync (ReadOnlyMemory< byte > buffer, WebSocketMessageType messageType, WebSocketMessageFlags messageFlags, CancellationToken cancellationToken=default(CancellationToken))
 

Static Public Member Functions

static ArraySegment< byte > CreateClientBuffer (int receiveBufferSize, int sendBufferSize)
 
static ArraySegment< byte > CreateServerBuffer (int receiveBufferSize)
 
static WebSocket CreateFromStream (Stream stream, bool isServer, string? subProtocol, TimeSpan keepAliveInterval)
 
static WebSocket CreateFromStream (Stream stream, WebSocketCreationOptions options)
 
static bool IsApplicationTargeting45 ()
 
static void RegisterPrefixes ()
 
static WebSocket CreateClientWebSocket (Stream innerStream, string? subProtocol, int receiveBufferSize, int sendBufferSize, TimeSpan keepAliveInterval, bool useZeroMaskingKey, ArraySegment< byte > internalBuffer)
 

Static Protected Member Functions

static void ThrowOnInvalidState (WebSocketState state, params WebSocketState[] validStates)
 
static bool IsStateTerminal (WebSocketState state)
 

Properties

ClientWebSocketOptions Options [get]
 
override? WebSocketCloseStatus CloseStatus [get]
 
override? string CloseStatusDescription [get]
 
override? string SubProtocol [get]
 
override WebSocketState State [get]
 
WebSocket ConnectedWebSocket [get]
 
static TimeSpan DefaultKeepAliveInterval [get]
 

Private Types

enum  InternalState { Created , Connecting , Connected , Disposed }
 

Private Member Functions

async Task ConnectAsyncCore (Uri uri, CancellationToken cancellationToken)
 
async ValueTask SendWithArrayPoolAsync (ReadOnlyMemory< byte > buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)
 

Private Attributes

int _state
 
WebSocketHandle _innerWebSocket
 

Detailed Description

Definition at line 6 of file ClientWebSocket.cs.


The documentation for this class was generated from the following file: