예제 #1
0
        /**
         * Constructor.
         *
         * @param socket The socket connection used for this handler.
         * @param header The HTTP header sent with this request.
         * @param gameId The game this connection is operating on.
         *
         * @throws IOException If something goes wrong with the socket.
         */
        protected RequestHandler(ISocketWrapper socket, HttpHeader header, string gameId)
        {
            _header = header;

            _socket = socket;
            //writer_ = new StreamWriter(socket_.getOutputStream());
            //writer_ = new StreamWriter(socket_.GetStream());
            _writer = _socket.GetWriter();

            GameId = gameId;
        }