X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/70f8adff2c970496bdc45717cad49ddec0405ae7..20072b367cf034ab9124560e4a06d8e32a388d93:/projects/rlm_stg/stg_client.h?ds=sidebyside diff --git a/projects/rlm_stg/stg_client.h b/projects/rlm_stg/stg_client.h index 6315a0a5..d57af7da 100644 --- a/projects/rlm_stg/stg_client.h +++ b/projects/rlm_stg/stg_client.h @@ -25,6 +25,8 @@ #include "stg/sgcp_types.h" // TransportType #include "stg/os_int.h" +#include + #include #include #include @@ -67,6 +69,8 @@ public: STG_CLIENT(const std::string& address); ~STG_CLIENT(); + bool stop(); + static STG_CLIENT* get(); static bool configure(const std::string& address); @@ -75,10 +79,13 @@ public: private: ChannelConfig m_config; STG::SGCP::Proto m_proto; + boost::thread m_thread; void m_writeHeader(TYPE type, const std::string& userName, const std::string& password); void m_writePairBlock(const PAIRS& source); PAIRS m_readPairBlock(); + + void m_run(); }; #endif