10 private readonly global::Interop.WebSocket.Property[]
_properties;
24 return new ServerWebSocket(innerStream, subProtocol, receiveBufferSize, keepAliveInterval, internalBuffer);
30 _properties = base.InternalBuffer.CreateProperties(useZeroMaskingKey:
false);
42 return webSocketHandle;
static void ValidateOptions(string subProtocol, int receiveBufferSize, int sendBufferSize, TimeSpan keepAliveInterval)
static void ThrowPlatformNotSupportedException_WSPC()
static void ValidateInnerStream(Stream innerStream)
readonly SafeHandle _sessionHandle
readonly global::Interop.WebSocket.Property[] _properties
SafeHandle CreateWebSocketHandle()
static WebSocket Create(Stream innerStream, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment< byte > internalBuffer)
ServerWebSocket(Stream innerStream, string subProtocol, int receiveBufferSize, TimeSpan keepAliveInterval, ArraySegment< byte > internalBuffer)
override SafeHandle SessionHandle
void StartKeepAliveTimer()
static void Validate(int count, int receiveBufferSize, int sendBufferSize, bool isServerBuffer)
static void WebSocketCreateServerHandle(global::Interop.WebSocket.Property[] properties, int propertyCount, out SafeWebSocketHandle webSocketHandle)
static void ValidateArraySegment(ArraySegment< byte > arraySegment, string parameterName)
static ArraySegment< byte > CreateServerBuffer(int receiveBufferSize)