Пример #1
0
 public ISocketDelegate OnConnection(IServer server, ISocket socket)
 {
     // XXX freelist
     var txDel = new HttpServerTransactionDelegate(responseFactory, requestDelegate);
     var socketDelegate = new HttpServerSocketDelegate(txDel);
     socketDelegate.Start(socket);
     return socketDelegate;
 }
Пример #2
0
        public ISocketDelegate OnConnection(IServer server, ISocket socket)
        {
            // XXX freelist
            var txDel          = new HttpServerTransactionDelegate(socket.RemoteEndPoint.Address, responseFactory, requestDelegate);
            var socketDelegate = new HttpServerSocketDelegate(txDel);

            socketDelegate.Start(socket);
            return(socketDelegate);
        }
Пример #3
0
        public ISocketDelegate OnConnection(IServer server, ISocket socket)
        {
            // XXX freelist
            var tx             = new HttpServerTransaction(socket);
            var txDel          = new HttpServerTransactionDelegate(requestDelegate);
            var socketDelegate = new HttpServerSocketDelegate(tx, txDel);

            return(socketDelegate);
        }