X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver_container.h;fp=libtest%2Fserver_container.h;h=29ecb97d689ecbaf34beae6bbd71b56c1375e865;hb=750f7447e014aab84e69e42b21feb1d996b2cf13;hp=4e81dafd27af310f22db1bf91ddd62160adebacb;hpb=2dc9e4fe44119bae275257cc8d7253665fc2606b;p=awesomized%2Flibmemcached diff --git a/libtest/server_container.h b/libtest/server_container.h index 4e81dafd..29ecb97d 100644 --- a/libtest/server_container.h +++ b/libtest/server_container.h @@ -35,6 +35,7 @@ namespace libtest { class server_startup_st { private: + uint64_t _magic; std::string server_list; bool _socket; bool _sasl; @@ -47,12 +48,10 @@ public: uint8_t udp; std::vector servers; - server_startup_st() : - _socket(false), - _sasl(false), - _count(5), - udp(0) - { } + server_startup_st(); + ~server_startup_st(); + + bool validate(); bool start_socket_server(const std::string& server_type, const in_port_t try_port, int argc, const char *argv[]); @@ -114,8 +113,6 @@ public: void push_server(Server *); Server *pop_server(); - - ~server_startup_st(); }; bool server_startup(server_startup_st&, const std::string&, in_port_t try_port, int argc, const char *argv[]);