X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/fd41f8dfd1133e89f6b5ac675fe2b5068b6bb652..114e097d3658e41e7946b5d5ba1ad2ffdc7fe2d9:/projects/rlm_stg/stg_client.h diff --git a/projects/rlm_stg/stg_client.h b/projects/rlm_stg/stg_client.h index ee15774f..b90b0e60 100644 --- a/projects/rlm_stg/stg_client.h +++ b/projects/rlm_stg/stg_client.h @@ -68,12 +68,15 @@ public: typedef bool (*Callback)(void* /*data*/, const RESULT& /*result*/, bool /*status*/); STG_CLIENT(const std::string& address, Callback callback, void* data); + STG_CLIENT(const STG_CLIENT& rhs); ~STG_CLIENT(); bool stop(); + bool connected() const; static STG_CLIENT* get(); static bool configure(const std::string& address, Callback callback, void* data); + static bool reconnect(); bool request(TYPE type, const std::string& userName, const std::string& password, const PAIRS& pairs);