/// <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(); }
/// <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; }