130 references to WebSocketProtocolComponent
System (130)
net\System\Net\_SafeNetHandles.cs (1)
3127WebSocketProtocolComponent.WebSocketDeleteHandle(this.handle);
net\System\Net\HttpListenerRequest.cs (1)
477if (!WebSocketProtocolComponent.IsSupported)
net\System\Net\WebSockets\ClientWebSocket.cs (1)
42if (!WebSocketProtocolComponent.IsSupported)
net\System\Net\WebSockets\InternalClientWebSocket.cs (2)
23private readonly WebSocketProtocolComponent.Property[] m_Properties; 56WebSocketProtocolComponent.WebSocketCreateClientHandle(m_Properties, out sessionHandle);
net\System\Net\WebSockets\ServerWebSocket.cs (2)
23private readonly WebSocketProtocolComponent.Property[] m_Properties; 59WebSocketProtocolComponent.WebSocketCreateServerHandle(m_Properties,
net\System\Net\WebSockets\WebSocket.cs (4)
35if (WebSocketProtocolComponent.IsSupported) 37defaultKeepAliveInterval = WebSocketProtocolComponent.WebSocketGetDefaultKeepAliveInterval(); 71if (!WebSocketProtocolComponent.IsSupported) 96if (!WebSocketProtocolComponent.IsSupported)
net\System\Net\WebSockets\WebSocketBase.cs (71)
484WebSocketProtocolComponent.WebSocketAbortHandle(SessionHandle); 1146keepAliveOperation.BufferType = WebSocketProtocolComponent.BufferType.UnsolicitedPong; 1184private static WebSocketProtocolComponent.BufferType GetBufferType(WebSocketMessageType messageType, 1198return WebSocketProtocolComponent.BufferType.UTF8Message; 1201return WebSocketProtocolComponent.BufferType.UTF8Fragment; 1207return WebSocketProtocolComponent.BufferType.BinaryMessage; 1210return WebSocketProtocolComponent.BufferType.BinaryFragment; 1214private static WebSocketMessageType GetMessageType(WebSocketProtocolComponent.BufferType bufferType) 1218case WebSocketProtocolComponent.BufferType.Close: 1220case WebSocketProtocolComponent.BufferType.BinaryFragment: 1221case WebSocketProtocolComponent.BufferType.BinaryMessage: 1223case WebSocketProtocolComponent.BufferType.UTF8Fragment: 1224case WebSocketProtocolComponent.BufferType.UTF8Message: 1234WebSocketProtocolComponent.BufferType.Close, 1235WebSocketProtocolComponent.BufferType.BinaryFragment, 1236WebSocketProtocolComponent.BufferType.BinaryMessage, 1237WebSocketProtocolComponent.BufferType.UTF8Fragment, 1238WebSocketProtocolComponent.BufferType.UTF8Message)); 1243WebSocketProtocolComponent.BufferType.Close, 1244WebSocketProtocolComponent.BufferType.BinaryFragment, 1245WebSocketProtocolComponent.BufferType.BinaryMessage, 1246WebSocketProtocolComponent.BufferType.UTF8Fragment, 1247WebSocketProtocolComponent.BufferType.UTF8Message)); 1251internal void ValidateNativeBuffers(WebSocketProtocolComponent.Action action, 1252WebSocketProtocolComponent.BufferType bufferType, 1253WebSocketProtocolComponent.Buffer[] dataBuffers, 1623protected abstract WebSocketProtocolComponent.ActionQueue ActionQueue { get; } 1634WebSocketProtocolComponent.BufferType bufferType, 1635WebSocketProtocolComponent.Action action, 1636WebSocketProtocolComponent.Buffer[] dataBuffers, 1661WebSocketProtocolComponent.Action action; 1662WebSocketProtocolComponent.BufferType bufferType; 1668WebSocketProtocolComponent.Buffer[] dataBuffers = 1669new WebSocketProtocolComponent.Buffer[BufferCount]; 1674WebSocketProtocolComponent.WebSocketGetAction(m_WebSocket, 1684case WebSocketProtocolComponent.Action.NoAction: 1733case WebSocketProtocolComponent.Action.IndicateReceiveComplete: 1741case WebSocketProtocolComponent.Action.ReceiveFromNetwork: 1776WebSocketProtocolComponent.WebSocketCompleteAction(m_WebSocket, 1781case WebSocketProtocolComponent.Action.IndicateSendComplete: 1782WebSocketProtocolComponent.WebSocketCompleteAction(m_WebSocket, actionContext, 0); 1788case WebSocketProtocolComponent.Action.SendToNetwork: 1793(bufferType != WebSocketProtocolComponent.BufferType.PingPong && 1794bufferType != WebSocketProtocolComponent.BufferType.UnsolicitedPong)) 1842WebSocketProtocolComponent.WebSocketCompleteAction(m_WebSocket, 1896protected override WebSocketProtocolComponent.ActionQueue ActionQueue 1898get { return WebSocketProtocolComponent.ActionQueue.Receive; } 1955WebSocketProtocolComponent.WebSocketReceive(m_WebSocket); 1983WebSocketProtocolComponent.BufferType bufferType, 1984WebSocketProtocolComponent.Action action, 1985WebSocketProtocolComponent.Buffer[] dataBuffers, 1994if (bufferType == WebSocketProtocolComponent.BufferType.PingPong) 1998WebSocketProtocolComponent.WebSocketCompleteAction(m_WebSocket, 2011if (bufferType == WebSocketProtocolComponent.BufferType.Close) 2026WebSocketProtocolComponent.BufferType.BinaryMessage || 2027bufferType == WebSocketProtocolComponent.BufferType.UTF8Message || 2028bufferType == WebSocketProtocolComponent.BufferType.Close; 2054WebSocketProtocolComponent.WebSocketCompleteAction(m_WebSocket, 2072protected override WebSocketProtocolComponent.ActionQueue ActionQueue 2074get { return WebSocketProtocolComponent.ActionQueue.Send; } 2082protected virtual Nullable<WebSocketProtocolComponent.Buffer> CreateBuffer(Nullable<ArraySegment<byte>> buffer) 2089WebSocketProtocolComponent.Buffer payloadBuffer; 2090payloadBuffer = new WebSocketProtocolComponent.Buffer(); 2111internal WebSocketProtocolComponent.BufferType BufferType { get; set; } 2120Nullable<WebSocketProtocolComponent.Buffer> payloadBuffer = CreateBuffer(buffer); 2123WebSocketProtocolComponent.WebSocketSend(m_WebSocket, BufferType, payloadBuffer.Value); 2127WebSocketProtocolComponent.WebSocketSendWithoutBody(m_WebSocket, BufferType); 2149BufferType = WebSocketProtocolComponent.BufferType.Close; 2155protected override Nullable<WebSocketProtocolComponent.Buffer> CreateBuffer(Nullable<ArraySegment<byte>> buffer) 2166WebSocketProtocolComponent.Buffer payloadBuffer = new WebSocketProtocolComponent.Buffer();
net\System\Net\WebSockets\WebSocketBuffer.cs (40)
135internal WebSocketProtocolComponent.Property[] CreateProperties(bool useZeroMaskingKey) 152WebSocketProtocolComponent.Property[] properties = 153new WebSocketProtocolComponent.Property[propertyCount]; 157properties[0] = new WebSocketProtocolComponent.Property() 159Type = WebSocketProtocolComponent.PropertyType.ReceiveBufferSize, 165properties[1] = new WebSocketProtocolComponent.Property() 167Type = WebSocketProtocolComponent.PropertyType.SendBufferSize, 173properties[2] = new WebSocketProtocolComponent.Property() 175Type = WebSocketProtocolComponent.PropertyType.AllocatedBuffer, 183properties[3] = new WebSocketProtocolComponent.Property() 185Type = WebSocketProtocolComponent.PropertyType.DisableMasking, 240internal ArraySegment<byte> ConvertPinnedSendPayloadFromNative(WebSocketProtocolComponent.Buffer buffer, 241WebSocketProtocolComponent.BufferType bufferType) 278internal bool IsPinnedSendPayloadBuffer(WebSocketProtocolComponent.Buffer buffer, 279WebSocketProtocolComponent.BufferType bufferType) 374internal ArraySegment<byte> ConvertNativeBuffer(WebSocketProtocolComponent.Action action, 375WebSocketProtocolComponent.Buffer buffer, 376WebSocketProtocolComponent.BufferType bufferType) 403internal void ConvertCloseBuffer(WebSocketProtocolComponent.Action action, 404WebSocketProtocolComponent.Buffer buffer, 413UnwrapWebSocketBuffer(buffer, WebSocketProtocolComponent.BufferType.Close, out bufferData, out bufferLength); 443internal void ValidateNativeBuffers(WebSocketProtocolComponent.Action action, 444WebSocketProtocolComponent.BufferType bufferType, 445WebSocketProtocolComponent.Buffer[] dataBuffers, 462bool isSendActivity = action == WebSocketProtocolComponent.Action.IndicateSendComplete || 463action == WebSocketProtocolComponent.Action.SendToNetwork; 473WebSocketProtocolComponent.Buffer dataBuffer = dataBuffers[i]; 511action != WebSocketProtocolComponent.Action.NoAction && 512action != WebSocketProtocolComponent.Action.IndicateReceiveComplete && 513action != WebSocketProtocolComponent.Action.IndicateSendComplete) 524internal static void UnwrapWebSocketBuffer(WebSocketProtocolComponent.Buffer buffer, 525WebSocketProtocolComponent.BufferType bufferType, 534case WebSocketProtocolComponent.BufferType.Close: 538case WebSocketProtocolComponent.BufferType.None: 539case WebSocketProtocolComponent.BufferType.BinaryFragment: 540case WebSocketProtocolComponent.BufferType.BinaryMessage: 541case WebSocketProtocolComponent.BufferType.UTF8Fragment: 542case WebSocketProtocolComponent.BufferType.UTF8Message: 543case WebSocketProtocolComponent.BufferType.PingPong: 544case WebSocketProtocolComponent.BufferType.UnsolicitedPong:
net\System\Net\WebSockets\WebSocketException.cs (4)
63m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 72m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 81m_WebSocketErrorCode = !WebSocketProtocolComponent.Succeeded(nativeError) ? WebSocketError.NativeError : WebSocketError.Success; 197if (!WebSocketProtocolComponent.Succeeded(nativeError))
net\System\Net\WebSockets\WebSocketHelpers.cs (4)
340if (string.Compare(secWebSocketVersion, WebSocketProtocolComponent.SupportedVersion, StringComparison.OrdinalIgnoreCase) != 0) 346WebSocketProtocolComponent.SupportedVersion)); 370if (WebSocketProtocolComponent.IsSupported) 372request.Headers[HttpKnownHeaderNames.SecWebSocketVersion] = WebSocketProtocolComponent.SupportedVersion;