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