| 35 | |
| 36 | struct config : caf::actor_system_config { |
| 37 | config() { |
| 38 | opt_group{custom_options_, "global"} // |
| 39 | .add<uint16_t>("port,p", "port to listen for incoming connections") |
| 40 | .add<size_t>("max-connections,m", "limit for concurrent clients"); |
| 41 | opt_group{custom_options_, "tls"} // |
| 42 | .add<std::string>("key-file,k", "path to the private key file") |
| 43 | .add<std::string>("cert-file,c", "path to the certificate file"); |
| 44 | } |
| 45 | }; |
| 46 | |
| 47 | // -- synchronous web server implementation ------------------------------------ |
no outgoing calls
no test coverage detected