| 99 | std::string mode; |
| 100 | uint16_t port = 0; |
| 101 | config() { |
| 102 | set("caf.middleman.heartbeat-interval", "20ms"); |
| 103 | add_actor_type("cell", cell_impl); |
| 104 | opt_group{custom_options_, "global"} |
| 105 | .add(server, "server,s", "run in server mode") |
| 106 | .add(mode, "mode,m", "set the test mode (what to test)") |
| 107 | .add(host, "host,H", "set host (ignored in server mode)") |
| 108 | .add(port, "port,p", "set port"); |
| 109 | } |
| 110 | }; |
| 111 | |
| 112 | int server(actor_system& sys, std::string_view mode, uint16_t port) { |