Example #1
0
HttpConnection::HttpConnection(
  EventQueue& aio_queue,
  EventHandler& http_request_handler,
  SocketAddress& peername,
  TcpSocket& socket_,
  Log* log
) : aio_queue(aio_queue.inc_ref()),
  http_request_handler(http_request_handler.inc_ref()),
  log(Object::inc_ref(log)),
  peername(peername.inc_ref()),
  socket_(static_cast<TcpSocket&>(socket_.inc_ref())) {
  state = STATE_CONNECTED;
}