Fix due to the modified WsStream.cs

This commit is contained in:
sta
2012-12-11 15:49:01 +09:00
parent daeaebcc4b
commit 093a0a102b
64 changed files with 105 additions and 61 deletions

View File

@@ -43,11 +43,11 @@ namespace WebSocketSharp.Net.Sockets {
private WebSocket _socket;
private WsStream _stream;
internal TcpListenerWebSocketContext(TcpClient client)
internal TcpListenerWebSocketContext(TcpClient client, bool secure)
{
_client = client;
_stream = WsStream.CreateServerStream(client);
_isSecure = _stream.IsSecure;
_isSecure = secure;
_stream = WsStream.CreateServerStream(client, secure);
_request = RequestHandshake.Parse(_stream.ReadHandshake());
_socket = new WebSocket(this);
}