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

Function caf_main

robot/middleman/driver.cpp:358–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358int caf_main(actor_system& sys, const config& cfg) {
359 signal(SIGTERM, set_shutdown_flag);
360 signal(SIGINT, set_shutdown_flag);
361 if (cfg.server)
362 return server(sys, cfg.mode, cfg.port);
363 else
364 return client(sys, cfg.mode, cfg.host, cfg.port);
365}
366
367CAF_MAIN(caf::id_block::io_test, caf::io::middleman)

Callers

nothing calls this directly

Calls 2

serverFunction · 0.70
clientFunction · 0.70

Tested by

no test coverage detected