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. | |
Public Member Functions inherited from eagine::msgbus::connection_info | |
| 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. | |
Public Member Functions inherited from eagine::interface< connection_info > | |
| 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 | |
Protected Member Functions inherited from eagine::interface< connection_info > | |
| constexpr | interface () noexcept=default |
| Default constructible by derived. | |
| constexpr | interface (interface &&) noexcept=default |
| Move constructible by derived. | |
Interface for message bus connection acceptors.