Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cClientLister.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cClientLister_H
7 #define _INC_cClientLister_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "../Proto/cSecureChannel.h"
13 #include "../Net/cNetAddrName.h"
14 
15 namespace GrayLib
16 {
18  {
19  // Basic UDP with no response.
20 
21  };
23  {
24  };
25 
27  {
35 
36  public:
37  static const TIMESECD_t k_IntervalMin = 10*60;
38 
42 
43  const char* m_pszAppId;
44  const char* m_pszName;
46 
47  public:
48  cClientLister( const char* pszAppId, const char* pszName = nullptr, const char* pszServer=nullptr );
49  ~cClientLister();
50 
51  HRESULT RequestAddToListSync( bool bSecure, const char* psz1, const char* psz2);
52  HRESULT RequestAddToListAsync( bool bSecure, const char* psz1, const char* psz2);
53  void OnTickLister();
54 
56  };
57 };
58 
59 #endif // _INC_cClientLister_H
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cClientLister.h:18
Definition: cClientLister.h:23
Definition: cClientLister.h:27
cNetAddrName m_Server
what server am i reporting to ?
Definition: cClientLister.h:39
UNITTEST_FRIEND(cClientLister)
const char * m_pszName
My unique name that i have claimed. like cSecureId::m_sUserId.
Definition: cClientLister.h:44
bool m_bServerSecure
Definition: cClientLister.h:40
bool m_bServerAsync
This server can do secure. HTTPS and/or UDP crypto.
Definition: cClientLister.h:41
cHashCode m_PassToken
My security hashcode. for my claimed name. m_pszAppId + m_pszName + Password. will add Time/k_Interva...
Definition: cClientLister.h:45
const char * m_pszAppId
This server can do async.
Definition: cClientLister.h:43
Definition: cHashCode.h:43
Definition: cNetAddrName.h:21
Definition: cMesh.h:22
int TIMESECD_t
signed delta seconds. like TIMESEC_t. redefined in TimeUnits.h.
Definition: cTimeSys.h:19