Esempio n. 1
0
        public Server(int port, IHttpRouterContext routeHandlingContext)
        {
            this.port     = port;
            this.listener = new TcpListener(IPAddress.Parse(LocalhostIpAddress), port);

            this.routeHandlingContext = routeHandlingContext;
        }
Esempio n. 2
0
 public ConnectionHandler(Socket client, IHttpRouterContext routeHandlingContext)
 {
     this.client = client;
     this.routeHandlingContext = routeHandlingContext;
 }