Default implementation of the middleman_actor
interface.
More...
#include <middleman_actor_impl.hpp>
|
| middleman_actor_impl (actor_config &cfg, actor default_broker) |
|
void | on_exit () override |
|
const char * | name () const override |
|
behavior_type | make_behavior () override |
|
| typed_event_based_actor (actor_config &cfg) |
|
std::set< std::string > | message_types () const override |
|
void | initialize () override |
|
Default implementation of the middleman_actor
interface.
◆ connect()
virtual expected< scribe_ptr > caf::io::middleman_actor_impl::connect |
( |
const std::string & | host, |
|
|
uint16_t | port ) |
|
protectedvirtual |
Tries to connect to given host
and port
.
The default implementation calls system().middleman().backend().new_tcp_scribe(host, port)
.
◆ contact()
Tries to connect to given host
and port
.
The default implementation calls system().middleman().backend().new_udp
.
◆ make_behavior()
behavior_type caf::io::middleman_actor_impl::make_behavior |
( |
| ) |
|
|
overridevirtual |
◆ open()
virtual expected< doorman_ptr > caf::io::middleman_actor_impl::open |
( |
uint16_t | port, |
|
|
const char * | addr, |
|
|
bool | reuse ) |
|
protectedvirtual |
Tries to open a local port.
The default implementation calls system().middleman().backend().new_tcp_doorman(port, addr, reuse)
.
◆ open_udp()
Tries to open a local port.
The default implementation calls system().middleman().backend().new_tcp_doorman(port, addr, reuse)
.
The documentation for this class was generated from the following file:
- /build/reproducible-path/actor-framework-0.17.6/libcaf_io/caf/io/middleman_actor_impl.hpp