Zdexby TheHolyOneZ
42,595 classes
Class

ManagedWebSocket

: WebSocket : Object
System.Net.WebSockets.ManagedWebSocket, System 0x00B0 (176 B) inherited 0x0010 System.dll
0x00x00B0

Members 28

OffsetSizeNameTypeFlagsDefault
0x08s_randomRandomNumberGeneratorPrivateStatic+1 flags—
0x08s_textEncodingUTF8EncodingPrivateStatic+1 flags—
0x08s_validSendStatesWebSocketState[]PrivateStatic+1 flags—
0x08s_validReceiveStatesWebSocketState[]PrivateStatic+1 flags—
0x08s_validCloseOutputStatesWebSocketState[]PrivateStatic+1 flags—
0x08s_validCloseStatesWebSocketState[]PrivateStatic+1 flags—
0x08s_cachedCloseTaskTask<System.Net.WebSockets.WebSocketReceiveResult>PrivateStatic+1 flags—
0x08_streamStreamPrivate+1 flags—
0x01_isServerboolPrivate+1 flags—
0x08_subprotocolstringPrivate+1 flags—
0x08_keepAliveTimerTimerPrivate+1 flags—
0x08_abortSourceCancellationTokenSourcePrivate+1 flags—
0x10_receiveBufferMemory<System.Byte>Private—
0x08_utf8TextStateUtf8MessageStatePrivate+1 flags—
0x08_sendFrameAsyncLockSemaphoreSlimPrivate+1 flags—
0x04_stateWebSocketStatePrivate—
0x01_disposedboolPrivate—
0x01_sentCloseFrameboolPrivate—
0x01_receivedCloseFrameboolPrivate—
0x005F0x01padding / unreflected
0x08_closeStatusNullable<System.Net.WebSockets.WebSocketCloseStatus>Private—
0x08_closeStatusDescriptionstringPrivate—
0x18_lastReceiveHeaderMessageHeaderPrivate—
0x04_receiveBufferOffsetintPrivate—
0x04_receiveBufferCountintPrivate—
0x04_receivedMaskOffsetOffsetintPrivate—
0x00940x04padding / unreflected
0x08_sendBufferbyte[]Private—
0x01_lastSendWasFragmentboolPrivate—
0x00A10x07padding / unreflected
0x08_lastReceiveAsyncTaskPrivate—

Functions 42

SignatureFlagsNativeParams
ManagedWebSocket CreateFromConnectedStream(Stream stream, bool isServer, const string& subprotocol, const TimeSpan& keepAliveInterval)PublicStatic0x08
object get_StateUpdateLock()Private+1 flags0x08
object get_ReceiveAsyncLock()Private+1 flags0x08
void .ctor(Stream stream, bool isServer, const string& subprotocol, const TimeSpan& keepAliveInterval)Private+1 flags0x08
void Dispose()Public+1 flags0x00
void DisposeCore()Private0x00
string get_CloseStatusDescription()Public+2 flags0x08
WebSocketState get_State()Public+2 flags0x04
Task SendAsync(const ArraySegment<System.Byte>& buffer, const WebSocketMessageType& messageType, bool endOfMessage, const CancellationToken& cancellationToken)Public+1 flags0x10
ValueTask SendPrivateAsync(const ReadOnlyMemory<System.Byte>& buffer, const WebSocketMessageType& messageType, bool endOfMessage, const CancellationToken& cancellationToken)Private0x10
Task<System.Net.WebSockets.WebSocketReceiveResult> ReceiveAsync(const ArraySegment<System.Byte>& buffer, const CancellationToken& cancellationToken)Public+1 flags0x10
Task CloseOutputAsync(const WebSocketCloseStatus& closeStatus, const string& statusDescription, const CancellationToken& cancellationToken)Public+1 flags0x08
void Abort()Public+1 flags0x00
ValueTask SendFrameAsync(const MessageOpcode& opcode, bool endOfMessage, const ReadOnlyMemory<System.Byte>& payloadBuffer, const CancellationToken& cancellationToken)Private0x10
ValueTask SendFrameLockAcquiredNonCancelableAsync(const MessageOpcode& opcode, bool endOfMessage, const ReadOnlyMemory<System.Byte>& payloadBuffer)Private0x10
Task WaitForWriteTaskAsync(const ValueTask& writeTask)Private0x10
Task SendFrameFallbackAsync(const MessageOpcode& opcode, bool endOfMessage, const ReadOnlyMemory<System.Byte>& payloadBuffer, const CancellationToken& cancellationToken)Private0x10
int WriteFrameToSendBuffer(const MessageOpcode& opcode, bool endOfMessage, const ReadOnlySpan<System.Byte>& payloadBuffer)Private0x10
void SendKeepAliveFrameAsync()Private0x00
int WriteHeader(const MessageOpcode& opcode, const byte[]& sendBuffer, const ReadOnlySpan<System.Byte>& payload, bool endOfMessage, bool useMask)PrivateStatic0x10
void WriteRandomMask(const byte[]& buffer, int offset)PrivateStatic0x08
ValueTask<TWebSocketReceiveResult> ReceiveAsyncPrivate(const Memory<System.Byte>& payloadBuffer, const CancellationToken& cancellationToken, const uint8& resultGetter)Private—0x18
Task HandleReceivedCloseAsync(const MessageHeader& header, const CancellationToken& cancellationToken)Private0x18
Task WaitForServerToCloseConnectionAsync(const CancellationToken& cancellationToken)Private0x08
Task HandleReceivedPingPongAsync(const MessageHeader& header, const CancellationToken& cancellationToken)Private0x18
bool IsValidCloseStatus(const WebSocketCloseStatus& closeStatus)PrivateStatic0x04
Task CloseWithReceiveErrorAndThrowAsync(const WebSocketCloseStatus& closeStatus, const WebSocketError& error, Exception innerException)Private0x08
bool TryParseMessageHeaderFromReceiveBuffer(ref MessageHeader& resultHeader)Private0x18
Task SendCloseFrameAsync(const WebSocketCloseStatus& closeStatus, const string& closeStatusDescription, const CancellationToken& cancellationToken)Private0x08
void ConsumeFromBuffer(int count)Private0x04
Task EnsureBufferContainsAsync(int minimumRequiredBytes, const CancellationToken& cancellationToken, bool throwOnPrematureClosure)Private0x08
void ThrowIfEOFUnexpected(bool throwOnPrematureClosure)Private0x01
void AllocateSendBuffer(int minLength)Private0x04
void ReleaseSendBuffer()Private0x00
int CombineMaskBytes(const Span<System.Byte>& buffer, int maskOffset)PrivateStatic0x10
int ApplyMask(const Span<System.Byte>& toMask, const byte[]& mask, int maskOffset, int maskOffsetIndex)PrivateStatic0x10
int ApplyMask(const Span<System.Byte>& toMask, int mask, int maskIndex)PrivateStatic0x10
void ThrowIfOperationInProgress(bool operationCompleted, const string& methodName)Private0x08
void ThrowOperationInProgress(const string& methodName)Private0x08
Exception CreateOperationCanceledException(Exception innerException, const CancellationToken& cancellationToken)PrivateStatic0x08
bool TryValidateUtf8(const Span<System.Byte>& span, bool endOfMessage, Utf8MessageState state)PrivateStatic0x10
void .cctor()PrivateStatic+1 flags0x00

Used by 9

types with a member, parameter or interface of this type