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

Method open

libcaf_io/caf/io/middleman.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240expected<uint16_t> middleman::open(uint16_t port, const char* in, bool reuse) {
241 std::string str;
242 if (in != nullptr)
243 str = in;
244 auto self = scoped_actor{system()};
245 return self->mail(open_atom_v, port, std::move(str), reuse)
246 .request(actor_handle(), infinite)
247 .receive();
248}
249
250expected<void> middleman::close(uint16_t port) {
251 auto self = scoped_actor{system()};

Callers 7

parseMethod · 0.45
open_fileMethod · 0.45
serverFunction · 0.45
serverFunction · 0.45
serverFunction · 0.45
initMethod · 0.45
openFunction · 0.45

Calls 3

receiveMethod · 0.45
requestMethod · 0.45
mailMethod · 0.45

Tested by 1

initMethod · 0.36