诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

75 line
1.9 KiB

  1. #ifndef INIR_PARAMETER_HEAD_FILE
  2. #define INIR_PARAMETER_HEAD_FILE
  3. #pragma once
  4. #include "Stdafx.h"
  5. //////////////////////////////////////////////////////////////////////////////////
  6. //配置参数
  7. class CInitParameter
  8. {
  9. //redis配置
  10. public:
  11. std::string m_RedisHost;//主机地址
  12. WORD m_RedisDb;//数据库索引
  13. WORD m_RedisPort;//端口
  14. std::uint32_t m_RedisTimeOut;//重连超时时间(ms)
  15. std::int32_t m_RedisMaxReconnect;//最大重连次数
  16. std::uint32_t m_RedisReconnectInterval; //重连间隔(ms)
  17. public:
  18. WORD m_wServerID; //登录服务器ID
  19. //系统配置
  20. public:
  21. BYTE m_cbDelayList; //延时列表
  22. WORD m_wMaxConnect; //最大连接
  23. WORD m_wServicePort; //服务端口
  24. TCHAR m_szServerName[LEN_SERVER]; //服务器名
  25. //组件时间
  26. public:
  27. WORD m_wConnectTime; //重连时间
  28. WORD m_wCollectTime; //统计时间
  29. WORD m_wLoadListTime; //列表时间
  30. WORD m_wReLoadListTime; //列表时间
  31. //客户时间
  32. public:
  33. WORD m_wIntermitTime; //中断时间
  34. WORD m_wOnLineCountTime; //人数时间
  35. //协调信息
  36. public:
  37. WORD m_wCorrespondPort; //协调端口
  38. tagAddressInfo m_CorrespondAddress; //协调地址
  39. //服务地址
  40. public:
  41. tagAddressInfo m_ServiceAddress; //服务地址
  42. tagDataBaseParameter m_AccountsDBParameter; //连接地址
  43. tagDataBaseParameter m_TreasureDBParameter; //连接地址
  44. tagDataBaseParameter m_PlatformDBParameter; //连接地址
  45. TCHAR m_HttpPath[64]; //http服务地址
  46. //函数定义
  47. public:
  48. //构造函数
  49. CInitParameter();
  50. //析构函数
  51. virtual ~CInitParameter();
  52. //功能函数
  53. public:
  54. //初始化
  55. VOID InitParameter();
  56. //加载配置
  57. VOID LoadInitParameter();
  58. };
  59. //////////////////////////////////////////////////////////////////////////////////
  60. #endif