public Server(int port, IHttpRouterContext routeHandlingContext) { this.port = port; this.listener = new TcpListener(IPAddress.Parse(LocalhostIpAddress), port); this.routeHandlingContext = routeHandlingContext; }
public ConnectionHandler(Socket client, IHttpRouterContext routeHandlingContext) { this.client = client; this.routeHandlingContext = routeHandlingContext; }