/** * protected constructor restricts creation of objects (use create()) * * @param tcp_conn TCP connection containing a new message to parse * @param handler function called after the message has been parsed */ HTTPRequestReader(TCPConnectionPtr& tcp_conn, FinishedHandler handler) : HTTPReader(true, tcp_conn), m_http_msg(new HTTPRequest), m_finished(handler) { m_http_msg->setRemoteIp(tcp_conn->getRemoteIp()); setLogger(PION_GET_LOGGER("pion.net.HTTPRequestReader")); }