Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AcceptWebSocketAsync()

static Task< HttpListenerWebSocketContext > System.Net.WebSockets.HttpWebSocket.AcceptWebSocketAsync ( HttpListenerContext context,
string subProtocol,
int receiveBufferSize,
TimeSpan keepAliveInterval,
ArraySegment< byte > internalBuffer )
inlinestaticpackage

Definition at line 120 of file HttpWebSocket.cs.

121 {
124 WebSocketBuffer.Validate(internalBuffer.Count, receiveBufferSize, 16, isServerBuffer: true);
126 }
static void ValidateOptions(string subProtocol, int receiveBufferSize, int sendBufferSize, TimeSpan keepAliveInterval)
static async Task< HttpListenerWebSocketContext > AcceptWebSocketAsyncCore(HttpListenerContext context, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment< byte > internalBuffer)
static void ValidateArraySegment(ArraySegment< byte > arraySegment, string parameterName)

References System.Net.WebSockets.HttpWebSocket.AcceptWebSocketAsyncCore(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Net.WebSockets.WebSocketBuffer.Validate(), System.Net.WebSockets.WebSocketValidate.ValidateArraySegment(), and System.Net.WebSockets.HttpWebSocket.ValidateOptions().

Referenced by System.Net.HttpListenerContext.AcceptWebSocketAsync().