Seastar
High performance C++ framework for concurrent servers
|
A listening socket, waiting to accept incoming network connections.
#include <seastar/net/api.hh>
Public Types | |
enum class | load_balancing_algorithm { connection_distribution , port , fixed , default_ = connection_distribution } |
Public Member Functions | |
server_socket () noexcept | |
Constructs a server_socket not corresponding to a connection. | |
server_socket (server_socket &&ss) noexcept | |
Moves a server_socket object. | |
server_socket & | operator= (server_socket &&cs) noexcept |
Move-assigns a server_socket object. | |
future< accept_result > | accept () |
void | abort_accept () |
socket_address | local_address () const noexcept |
Local bound address. | |
void seastar::server_socket::abort_accept | ( | ) |
future<accept_result> seastar::server_socket::accept | ( | ) |
Accepts the next connection to successfully connect to this socket.