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) |
Protected Member Functions | |
void | StartKeepAliveTimer () |
Static Protected Member Functions | |
static void | ThrowOnInvalidState (WebSocketState state, params WebSocketState[] validStates) |
static bool | IsStateTerminal (WebSocketState state) |
Package Functions | |
void | ValidateNativeBuffers (WebSocketProtocolComponent.Action action, WebSocketProtocolComponent.BufferType bufferType, global::Interop.WebSocket.Buffer[] dataBuffers, uint dataBufferCount) |
Static Package Functions | |
static WebSocket | Create (Stream innerStream, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment< byte > internalBuffer) |
Properties | |
override SafeHandle | SessionHandle [get] |
override WebSocketState | State [get] |
override string | SubProtocol [get] |
override? WebSocketCloseStatus | CloseStatus [get] |
override string | CloseStatusDescription [get] |
WebSocketBuffer | InternalBuffer [get] |
static TimeSpan | DefaultKeepAliveInterval [get] |
Static Private Member Functions | |
static void | ReleaseLock (object lockObject, ref bool lockTaken) |
static WebSocketProtocolComponent.BufferType | GetBufferType (WebSocketMessageType messageType, bool endOfMessage) |
static WebSocketMessageType | GetMessageType (WebSocketProtocolComponent.BufferType bufferType) |
static async void | OnKeepAlive (object sender) |
Definition at line 6 of file ServerWebSocket.cs.