Exemplo n.º 1
0
        public VtortolaTransportDetails(WebSocket websocket)
        {
            IPEndPoint remoteEndpoint = websocket.RemoteEndpoint;

            RemoteEndpoint =
                $"tcp4://{remoteEndpoint.Address}:{remoteEndpoint.Port}";

            HttpRequest   = new VtortolaWebSocketHttpRequest(websocket.HttpRequest);
            mHttpResponse = new VtortolaWebSocketHttpResponse(websocket.HttpResponse);
        }
Exemplo n.º 2
0
        public VtortolaTransportDetails(WebSocket websocket)
        {
            IPEndPoint remoteEndpoint = websocket.RemoteEndpoint;

            mRemoteEndpoint =
                string.Format("tcp4://{0}:{1}",
                              remoteEndpoint.Address,
                              remoteEndpoint.Port);

            mHttpRequest  = new VtortolaWebSocketHttpRequest(websocket.HttpRequest);
            mHttpResponse = new VtortolaWebSocketHttpResponse(websocket.HttpResponse);
        }