|
Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
|
Listens for incoming network connections. More...
#include <Listener.hpp>
Public Member Functions | |
| Listener (uint16_t port) | |
| Constructs a Listener on the specified port. | |
| void | start () |
| Starts the listener to accept connections. | |
| std::optional< network::Socket > | accept_connection () |
| Accepts a new incoming connection. | |
| int | fd () const |
| Gets the underlying file descriptor for epoll registration. | |
Listens for incoming network connections.
|
explicit |
Constructs a Listener on the specified port.
| port | The port to listen on. |
| std::optional< network::Socket > server::Listener::accept_connection | ( | ) |
Accepts a new incoming connection.
| int server::Listener::fd | ( | ) | const |
Gets the underlying file descriptor for epoll registration.
| void server::Listener::start | ( | ) |
Starts the listener to accept connections.