X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fserver.h;h=d987a0b7d3307e8e5ebde87b4014b022bc7d9104;hb=b90c798532ec8d4d4e2f5c1eea1ec18354dd2070;hp=c09469ecea160164f1076f62968e5a96b9bb1196;hpb=3c4d734f56530d43520f385bff97162c04ac81ac;p=m6w6%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index c09469ec..d987a0b7 100644 --- a/libtest/server.h +++ b/libtest/server.h @@ -171,6 +171,7 @@ class server_startup_st { private: std::string server_list; + bool _socket; public: @@ -178,6 +179,7 @@ public: std::vector servers; server_startup_st() : + _socket(false), udp(0) { } @@ -194,6 +196,17 @@ public: bool is_helgrind() const; bool is_valgrind() const; + bool socket() + { + return _socket; + } + + void set_socket() + { + _socket= true; + } + + void shutdown(bool remove= false); void push_server(Server *); Server *pop_server();