You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

uniqueid.cpp 192 B

8 years ago
8 years ago
12345678910111213141516
  1. #include "uniqueid.h"
  2. #include <limits.h>
  3. UniqueId::UniqueId()
  4. {
  5. mId = 0;
  6. }
  7. IdType UniqueId::get()
  8. {
  9. auto id = ++mId;
  10. if (id >= ULONG_LONG_MAX)
  11. mId=1;
  12. return mId;
  13. }

mac下的“飞秋”大多数只是飞鸽传书协议,而且未发现令人满意的开源项目,所以基于c++与qt实现了基础的飞秋协议。

Contributors (1)