Template Class listener¶
Defined in File listener.h
Inheritance Relationships¶
Base Type¶
public std::enable_shared_from_this< listener< RouterT, AttachmentT > >
Class Documentation¶
-
template<typename
RouterT, typenameAttachmentT>
classudho::listener: public std::enable_shared_from_this<listener<RouterT, AttachmentT>>¶ listener runs accept loop for HTTP sockets
Public Functions
-
listener(RouterT &router, boost::asio::io_service &service, attachment_type &attachment, const boost::asio::ip::tcp::endpoint &endpoint)¶ - Parameters
router: HTTP url mapping routerservice: I/O serviceendpoint: HTTP server endpoint to listen on
-
void
stop()¶ stops accepting incomming connections
-
~listener()¶
-
void
run()¶ starts the async accept loop
-
void
accept()¶ accept an incomming connection
-
void
on_accept(boost::system::error_code ec)¶
-