Template Class connection¶
Defined in File connection.h
Inheritance Relationships¶
Base Type¶
public std::enable_shared_from_this< connection< RouterT, AttachmentT > >
Class Documentation¶
-
template<typename
RouterT, typenameAttachmentT>
classudho::connection: public std::enable_shared_from_this<connection<RouterT, AttachmentT>>¶ Stateful HTTP Session
Public Functions
-
connection(RouterT &router, attachment_type &attachment, socket_type socket)¶ session constructor
- Parameters
router: routersocket: TCP socket
-
~connection()¶
-
void
run()¶ start the read loop
-
void
do_read()¶
-
void
on_read(boost::system::error_code ec, std::size_t bytes_transferred)¶
-
void
on_write(boost::system::error_code, std::size_t bytes_transferred, bool close)¶
-
void
do_close()¶
-
void
respond(udho::defs::response_type &msg)¶
-