OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::msgbus::connection_factory Struct Referenceabstract

Interface for message bus connection and acceptor factories. More...

#include <eagine/message_bus/conn_factory.hpp>

Public Member Functions

virtual auto make_acceptor (string_view address) -> std::unique_ptr< acceptor >=0
 Make a new acceptor listening on the specified address. More...
 
virtual auto make_connector (string_view address) -> std::unique_ptr< connection >=0
 Make a new connector connecting to the specified address. More...
 
auto make_acceptor ()
 Make a new acceptor listening on a default address. More...
 
auto make_connector ()
 Make a new connector connecting to the specified address. More...
 
auto make_acceptor (identifier id)
 Make a new acceptor listening on the specified address. More...
 
auto make_connector (identifier id)
 Make a new connector connecting to the specified address. More...
 
- 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.
 

Detailed Description

Interface for message bus connection and acceptor factories.

Member Function Documentation

◆ make_acceptor() [1/3]

auto eagine::msgbus::connection_factory::make_acceptor ( )
inline

Make a new acceptor listening on a default address.

See also
make_connector

Referenced by make_acceptor().

◆ make_acceptor() [2/3]

auto eagine::msgbus::connection_factory::make_acceptor ( identifier  id)
inline

Make a new acceptor listening on the specified address.

See also
make_connector

◆ make_acceptor() [3/3]

virtual auto eagine::msgbus::connection_factory::make_acceptor ( string_view  address) -> std::unique_ptr< acceptor >
pure virtual

Make a new acceptor listening on the specified address.

See also
make_connector

Implemented in eagine::msgbus::posix_mqueue_connection_factory, and eagine::msgbus::direct_connection_factory.

◆ make_connector() [1/3]

auto eagine::msgbus::connection_factory::make_connector ( )
inline

Make a new connector connecting to the specified address.

See also
make_acceptor

Referenced by make_connector().

◆ make_connector() [2/3]

auto eagine::msgbus::connection_factory::make_connector ( identifier  id)
inline

Make a new connector connecting to the specified address.

See also
make_acceptor

◆ make_connector() [3/3]

virtual auto eagine::msgbus::connection_factory::make_connector ( string_view  address) -> std::unique_ptr< connection >
pure virtual

Make a new connector connecting to the specified address.

See also
make_acceptor

Implemented in eagine::msgbus::posix_mqueue_connection_factory, and eagine::msgbus::direct_connection_factory.


The documentation for this struct was generated from the following file:

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).