89 references to WebSocketHelpers
System (89)
net\System\Net\HttpListenerContext.cs (4)
156WebSocketHelpers.DefaultReceiveBufferSize, 163WebSocketHelpers.DefaultReceiveBufferSize, 171WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval); 186return WebSocketHelpers.AcceptWebSocketAsync(this,
net\System\Net\HttpListenerRequest.cs (1)
504if (string.Compare(upgrade, WebSocketHelpers.WebSocketUpgradeToken, StringComparison.OrdinalIgnoreCase) == 0)
net\System\Net\Internal.cs (1)
1735WebSocketHelpers.PrepareWebRequest(ref request);
net\System\Net\WebSockets\ClientWebSocket.cs (9)
44WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 271if (!string.Equals(upgradeHeader, WebSocketHelpers.WebSocketUpgradeToken, 289string expectedAcceptHeader = WebSocketHelpers.GetSecWebSocketAcceptString( 417receiveBufferSize = WebSocketHelpers.DefaultReceiveBufferSize; 418sendBufferSize = WebSocketHelpers.DefaultClientSendBufferSize; 518WebSocketHelpers.ValidateBufferSizes(receiveBufferSize, sendBufferSize); 528WebSocketHelpers.ValidateBufferSizes(receiveBufferSize, sendBufferSize); 529WebSocketHelpers.ValidateArraySegment(buffer, "buffer"); 568WebSocketHelpers.ValidateSubprotocol(subProtocol);
net\System\Net\WebSockets\InternalClientWebSocket.cs (1)
35WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC();
net\System\Net\WebSockets\ServerWebSocket.cs (1)
38WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC();
net\System\Net\WebSockets\WebSocket.cs (10)
50WebSocketHelpers.ValidateBufferSizes(receiveBufferSize, sendBufferSize); 57WebSocketHelpers.ValidateBufferSizes(receiveBufferSize, WebSocketBuffer.MinSendBufferSize); 73WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 76WebSocketHelpers.ValidateInnerStream(innerStream); 77WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize, sendBufferSize, keepAliveInterval); 78WebSocketHelpers.ValidateArraySegment<byte>(internalBuffer, "internalBuffer"); 98WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 101WebSocketHelpers.ValidateInnerStream(innerStream); 102WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval); 103WebSocketHelpers.ValidateArraySegment<byte>(internalBuffer, "internalBuffer");
net\System\Net\WebSockets\WebSocketBase.cs (11)
76WebSocketHelpers.ValidateInnerStream(innerStream); 77WebSocketHelpers.ValidateOptions(subProtocol, internalBuffer.ReceiveBufferSize, 200WebSocketHelpers.ValidateArraySegment<byte>(buffer, "buffer"); 296WebSocketHelpers.ValidateArraySegment<byte>(buffer, "buffer"); 512WebSocketHelpers.ValidateCloseStatus(closeStatus, statusDescription); 758WebSocketHelpers.ValidateCloseStatus(closeStatus, statusDescription); 1748WebSocketHelpers.ThrowIfConnectionAborted(m_WebSocket.m_InnerStream, true); 1832WebSocketHelpers.ThrowIfConnectionAborted(m_WebSocket.m_InnerStream, false); 2013payload = WebSocketHelpers.EmptyPayload; 2170Contract.Assert(blob.Length <= WebSocketHelpers.MaxControlFramePayloadLength, 2172ArraySegment<byte> closeBuffer = new ArraySegment<byte>(blob, 0, Math.Min(WebSocketHelpers.MaxControlFramePayloadLength, blob.Length));
net\System\Net\WebSockets\WebSocketBuffer.cs (3)
198WebSocketHelpers.ValidateBuffer(payload.Array, payload.Offset, payload.Count); 315m_PinnedSendBuffer = WebSocketHelpers.EmptyPayload; 387return WebSocketHelpers.EmptyPayload;
net\System\Net\WebSockets\WebSocketConnectionStream.cs (16)
109new CancellationTokenSource(WebSocketHelpers.ClientTcpCloseTimeout); 116WebSocketHelpers.ThrowIfConnectionAborted(m_ConnectStream.Connection, true); 202WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken)); 215WebSocketHelpers.ThrowIfConnectionAborted(m_ConnectStream.Connection, true); 250WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken)); 261WebSocketHelpers.ThrowIfConnectionAborted(m_ConnectStream.Connection, false); 330WebSocketHelpers.ThrowIfConnectionAborted(m_ConnectStream.Connection, false); 612WebSocketHelpers.ThrowIfConnectionAborted(connection.m_InnerStream, false); 623WebSocketHelpers.ThrowIfConnectionAborted(connection.m_InnerStream, false); 655WebSocketHelpers.ThrowIfConnectionAborted(m_InnerStream, false); 683WebSocketHelpers.ValidateBuffer(buffer, offset, count); 693WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken)); 707WebSocketHelpers.ThrowIfConnectionAborted(m_InnerStream, false); 735WebSocketHelpers.ValidateBuffer(buffer, offset, count); 751WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken)); 766WebSocketHelpers.ThrowIfConnectionAborted(m_InnerStream, true);
net\System\Net\WebSockets\WebSocketHelpers.cs (14)
60WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize, WebSocketBuffer.MinSendBufferSize, keepAliveInterval); 61WebSocketHelpers.ValidateArraySegment<byte>(internalBuffer, "internalBuffer"); 94WebSocketHelpers.ProcessWebSocketProtocolHeader( 108string secWebSocketAccept = WebSocketHelpers.GetSecWebSocketAcceptString(secWebSocketKey); 111response.Headers.Add(HttpKnownHeaderNames.Upgrade, WebSocketHelpers.WebSocketUpgradeToken); 121WebSocketHelpers.MethodNames.AcceptWebSocketAsync, 205string acceptString = string.Concat(secWebSocketKey, WebSocketHelpers.SecWebSocketKeyGuid); 324WebSocketHelpers.MethodNames.ValidateWebSocketHeaders, 327WebSocketHelpers.WebSocketUpgradeToken, 336WebSocketHelpers.MethodNames.ValidateWebSocketHeaders, 344WebSocketHelpers.MethodNames.ValidateWebSocketHeaders, 353WebSocketHelpers.MethodNames.ValidateWebSocketHeaders, 441if (length > WebSocketHelpers.MaxControlFramePayloadLength) 445WebSocketHelpers.MaxControlFramePayloadLength),
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (4)
131WebSocketHelpers.ValidateBuffer(buffer, offset, count); 141WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken)); 419WebSocketHelpers.ValidateBuffer(buffer, offset, count); 429WebSocketHelpers.GetTraceMsgForParameters(offset, count, cancellationToken));
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (14)
49Value = WebSocketHelpers.WebSocketUpgradeToken, 50ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 169Value = WebSocketHelpers.WebSocketUpgradeToken, 170ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 203WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 362WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 374WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 425WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 434WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 476string acceptValue = WebSocketHelpers.GetSecWebSocketAcceptString(key); 490Value = WebSocketHelpers.WebSocketUpgradeToken, 491ValueLength = (uint)WebSocketHelpers.WebSocketUpgradeToken.Length 526WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC(); 535WebSocketHelpers.ThrowPlatformNotSupportedException_WSPC();