MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / connect

Method connect

libcaf_io/caf/io/middleman.cpp:257–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257expected<node_id> middleman::connect(std::string host, uint16_t port) {
258 auto self = scoped_actor{system()};
259 auto res = self->mail(connect_atom_v, std::move(host), port)
260 .request(actor_handle(), infinite)
261 .receive();
262 if (!res)
263 return std::move(res.error());
264 return std::get<0>(*res);
265}
266
267expected<uint16_t> middleman::publish(const strong_actor_ptr& whom,
268 std::set<std::string> sigs, uint16_t port,

Callers 9

clientFunction · 0.45
caf_mainFunction · 0.45
clientFunction · 0.45
clientFunction · 0.45
caf_mainFunction · 0.45
caf_mainFunction · 0.45
caf_mainFunction · 0.45
caf_mainFunction · 0.45
connectFunction · 0.45

Calls 4

receiveMethod · 0.45
requestMethod · 0.45
mailMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected