Пример #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();
 }