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 without being bound to any address. | |
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 |
operator bool () const noexcept | |
void seastar::server_socket::abort_accept | ( | ) |
future< accept_result > seastar::server_socket::accept | ( | ) |
Accepts the next connection to successfully connect to this socket.
|
noexcept |
Local bound address
server_socket
is listening, an empty address constructed with socket_address()
otherwise.
|
inlineexplicitnoexcept |
Check whether the server_socket
is listening on any address.
socket_address
is bound to an address, false if it is just created with the default constructor.