Esempio n. 1
0
 public Listener(NaiveHttpServer server, TcpListener tcpListener)
 {
     this.server                = server;
     this.tcpListener           = tcpListener;
     tcpListener.Server.NoDelay = true;
     this.localEP               = tcpListener.LocalEndpoint as IPEndPoint;
 }
Esempio n. 2
0
 public HttpConnection(IMyStream myStream, EPPair epPair, NaiveHttpServer server)
 {
     this.baseStream = myStream.ToStream();
     this.myStream   = myStream;
     this.server     = server;
     this.epPair     = epPair;
 }