]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/stg_client.h
Implemeted reconnect in rlm_stg when the connection is lost.
[stg.git] / projects / rlm_stg / stg_client.h
index ee15774f1a8b720b7243aab7c8908cd73bac4da8..b90b0e605265d32e2d7e07b05effb5939b75f1a5 100644 (file)
@@ -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);