Interface for message bus connection acceptors. More...
#include <eagine/message_bus/acceptor.hpp>
Public Types | |
using | accept_handler = callable_ref< void(std::unique_ptr< connection >)> |
Alias for accepted connection handler callable reference type. | |
Public Member Functions | |
virtual auto | update () -> bool |
Updates the internal state of the acceptor (called repeatedly). | |
virtual auto | process_accepted (const accept_handler &handler) -> bool=0 |
Lets the handler process the pending accepted connections. | |
![]() | |
virtual auto | kind () -> connection_kind=0 |
Returns the connection kind. | |
virtual auto | addr_kind () -> connection_addr_kind=0 |
Returns the connection address kind. | |
virtual auto | type_id () -> identifier=0 |
Returns a description identifier of the implementation. | |
![]() | |
constexpr | interface (const interface &)=delete |
Not copyable. | |
auto | operator= (interface &&)=delete |
Not move assignable. | |
auto | operator= (const interface &)=delete |
Not copy assignable. | |
Additional Inherited Members | |
![]() | |
constexpr | interface () noexcept=default |
Default constructible by derived. | |
constexpr | interface (interface &&) noexcept=default |
Move constructible by derived. | |
Interface for message bus connection acceptors.