|
@@ -14,11 +14,11 @@ web_connect::web_connect()
|
|
|
{
|
|
|
}
|
|
|
|
|
|
-std::atomic<int> web_connect::_beatheart_count;
|
|
|
+//std::atomic<int> web_connect::_beatheart_count;
|
|
|
|
|
|
void web_connect::init(const std::vector<std::string>&uri_list,int32_t st, std::map<std::string, YA::MSG_HANDLE_FUNC_TYPE>& MsgFuncList)
|
|
|
{
|
|
|
- MsgFuncList.insert( std::make_pair( "beatheart", &web_connect::_beatheart_callback ) );
|
|
|
+ //MsgFuncList.insert( std::make_pair( "beatheart", &web_connect::_beatheart_callback ) );
|
|
|
|
|
|
swsClientMgr.Build( uri_list, MsgFuncList );
|
|
|
|
|
@@ -57,11 +57,11 @@ bool web_connect::connect()
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-void web_connect::_beatheart_callback( int ID, std::string const& name,
|
|
|
- sio::message::ptr const& data, bool need_ack, sio::message::list &ack_resp )
|
|
|
-{
|
|
|
- _beatheart_count=BEATHEART_COUNT_NUM;
|
|
|
-}
|
|
|
+//void web_connect::_beatheart_callback( int ID, std::string const& name,
|
|
|
+// sio::message::ptr const& data, bool need_ack, sio::message::list &ack_resp )
|
|
|
+//{
|
|
|
+// _beatheart_count=BEATHEART_COUNT_NUM;
|
|
|
+//}
|
|
|
|
|
|
void web_connect::_beatheart_thread()
|
|
|
{
|