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