X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver.h;h=fa5240569f8531020d590b8fa757260474ff5980;hb=99332db60646cb1b06a61d1636eddbbf0b5d0b40;hp=a41e621bb1f491cccf804d334493b360c53e4409;hpb=25efe3485198149616820ab4e52d2f18f0abe5a7;p=awesomized%2Flibmemcached diff --git a/libtest/server.h b/libtest/server.h index a41e621b..fa524056 100644 --- a/libtest/server.h +++ b/libtest/server.h @@ -232,7 +232,7 @@ public: bool is_socket() const { - return _hostname[0] == '/'; + return _is_socket; } const std::string running() const @@ -250,6 +250,16 @@ public: bool validate(); + void out_of_ban_killed(bool arg) + { + out_of_ban_killed_= arg; + } + + bool out_of_ban_killed() + { + return out_of_ban_killed_; + } + protected: bool set_pid_file(); Options _options; @@ -262,6 +272,7 @@ private: bool set_log_file(); bool set_socket_file(); void reset_pid(); + bool out_of_ban_killed_; bool args(Application&); std::string _error; @@ -270,5 +281,3 @@ private: std::ostream& operator<<(std::ostream& output, const libtest::Server &arg); } // namespace libtest - -