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

Function caf_main

robot/stream/driver.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int caf_main(actor_system& sys, const config& cfg) {
106 signal(SIGTERM, set_shutdown_flag);
107 signal(SIGINT, set_shutdown_flag);
108 if (cfg.server_mode)
109 return server(sys, cfg.port);
110 else
111 return client(sys, cfg.host, cfg.port);
112}
113
114CAF_MAIN(id_block::stream_driver, io::middleman)

Callers

nothing calls this directly

Calls 2

serverFunction · 0.70
clientFunction · 0.70

Tested by

no test coverage detected