Terraria v1.4.4.9
Terraria source code documentation
|
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 |
Definition at line 6 of file ClientWebSocket.cs.