예제 #1
0
 /// <summary>Initializes a new connection from a HTTP client</summary>
 /// <param name="server">Server the client is connected to</param>
 /// <param name="socket">Socket of the connected client</param>
 /// <param name="bufferSize">Size of the receive buffer</param>
 public ClientConnection(HttpServer server, Socket socket, int bufferSize) :
   base(socket, bufferSize) {
   this.server = server;
   this.parser = new RequestParser(1024);
   Start();
 }
예제 #2
0
 /// <summary>Initializes a new connection from a HTTP client</summary>
 /// <param name="server">Server the client is connected to</param>
 /// <param name="socket">Socket of the connected client</param>
 public ClientConnection(HttpServer server, Socket socket) :
     this(server, socket, DefaultBufferSize)
 {
     this.socket = socket;
 }
예제 #3
0
 /// <summary>Initializes a new connection from a HTTP client</summary>
 /// <param name="server">Server the client is connected to</param>
 /// <param name="socket">Socket of the connected client</param>
 public ClientConnection(HttpServer server, Socket socket) :
   this(server, socket, DefaultBufferSize) {
   this.socket = socket;
 }
예제 #4
0
 /// <summary>Initializes a new connection from a HTTP client</summary>
 /// <param name="server">Server the client is connected to</param>
 /// <param name="socket">Socket of the connected client</param>
 /// <param name="bufferSize">Size of the receive buffer</param>
 public ClientConnection(HttpServer server, Socket socket, int bufferSize) :
   base(socket, bufferSize) {
   this.server = server;
   this.parser = new RequestParser(1024);
   Start();
 }