bool validate();
- bool start_socket_server(const std::string& server_type, const in_port_t try_port, int argc, const char *argv[]);
+ bool start_socket_server(const std::string& server_type, const in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message= true);
+ bool start_server(const std::string& server_type, const in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message= true);
uint32_t count() const
{
- return servers.size();
+ return uint32_t(servers.size());
}
void restart();
}
- void shutdown_and_remove();
+ // Just remove everything after shutdown
+ void clear();
+
bool shutdown();
bool shutdown(uint32_t number_of_host);
bool check() const;
void push_server(Server *);
+ Server* last();
Server *pop_server();
unsigned long int servers_to_run() const