Accepts incoming connections.
More...
#include <listener.hpp>
Accepts incoming connections.
◆ listener() [1/3]
| malloy::server::listener::listener |
( |
std::shared_ptr< spdlog::logger > | logger, |
|
|
std::shared_ptr< spdlog::logger > | connection_logger, |
|
|
boost::asio::io_context & | ioc, |
|
|
std::shared_ptr< boost::asio::ssl::context > | tls_ctx, |
|
|
const boost::asio::ip::tcp::endpoint & | endpoint, |
|
|
std::shared_ptr< malloy::server::router > | router, |
|
|
std::shared_ptr< const std::filesystem::path > | http_doc_root, |
|
|
std::string | agent_string ) |
Constructor
- Parameters
-
| logger | The logger instance to use. |
| connection_logger | The logger instance for connections. |
| ioc | The I/O context to use. |
| tls_ctx | The TLS context to use. |
| endpoint | The enpoint to use. |
| router | The router to use. |
| http_doc_root | The path to the HTTP doc root. |
| agent_string | The HTTP agent string field value. |
◆ listener() [2/3]
| malloy::server::listener::listener |
( |
const listener & | other | ) |
|
|
delete |
◆ listener() [3/3]
| malloy::server::listener::listener |
( |
listener && | other | ) |
|
|
deletenoexcept |
◆ ~listener()
| virtual malloy::server::listener::~listener |
( |
| ) |
|
|
virtualdefault |
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| rhs | The object to copy-assign from. |
- Returns
- A reference to the assigned object.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| rhs | The object to move-assign from. |
- Returns
- A reference to the assigned object.
◆ router()
Get the router.
- Returns
- The router.
◆ run()
Start accepting incoming connections
The documentation for this class was generated from the following files:
- lib/malloy/server/listener.hpp
- lib/malloy/server/listener.cpp