tag_message.h 814 B

123456789101112131415161718192021
  1. #ifndef sync_time_tag_message_h
  2. #define sync_time_tag_message_h
  3. namespace host_server{
  4. /*
  5. * 用于保存时间同步节点的数据
  6. */
  7. struct tag_message
  8. {
  9. unsigned long long m_local_id; // 本节点的分站号
  10. unsigned long long m_sync_root_id; // 同步根节点的分站号
  11. unsigned short m_sync_num; // 当前时间同步号
  12. unsigned long long m_receive_time; // 接收时间
  13. tag_message():m_local_id(0), m_sync_root_id(0), m_sync_num(0), m_receive_time(0){}
  14. tag_message(unsigned long long local_id, unsigned long long sync_root_id, unsigned short sync_num, unsigned long long receive_time): m_local_id(local_id), m_sync_root_id(sync_root_id), m_sync_num(sync_num), m_receive_time(receive_time){}
  15. };
  16. }
  17. #endif