![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cClientLister.h>
Public Member Functions | |
cClientLister (const char *pszAppId, const char *pszName=nullptr, const char *pszServer=nullptr) | |
~cClientLister () | |
HRESULT | RequestAddToListSync (bool bSecure, const char *psz1, const char *psz2) |
HRESULT | RequestAddToListAsync (bool bSecure, const char *psz1, const char *psz2) |
void | OnTickLister () |
UNITTEST_FRIEND (cClientLister) | |
Public Attributes | |
cNetAddrName | m_Server |
what server am i reporting to ? More... | |
bool | m_bServerSecure |
bool | m_bServerAsync |
This server can do secure. HTTPS and/or UDP crypto. More... | |
const char * | m_pszAppId |
This server can do async. More... | |
const char * | m_pszName |
My unique name that i have claimed. like cSecureId::m_sUserId. More... | |
cHashCode | m_PassToken |
My security hashcode. for my claimed name. m_pszAppId + m_pszName + Password. will add Time/k_IntervalMin to send to the server. More... | |
Static Public Attributes | |
static const TIMESECD_t | k_IntervalMin = 10*60 |
Cant update any more frequent than this. 10 minutes. Local Clock must be accurate to this interval. More... | |
Ping (outgoing) the lister server/service/Master and tell the world I'm here. (or I'm still here like a heartbeat) Similar to UPNP. List Myself. Like PingLister, PingClient. Report (Node, App, InstanceId), PassToken. Talks to ClusterMaster List service. May have several optional protocols. 0. UDP (no response) 1. TCP REST JSON (non secure). 2. TCP REST secure. Used mostly for pushing data. use cClientConfig for query of config type data.
GrayLib::cClientLister::cClientLister | ( | const char * | pszAppId, |
const char * | pszName = nullptr , |
||
const char * | pszServer = nullptr |
||
) |
GrayLib::cClientLister::~cClientLister | ( | ) |
void GrayLib::cClientLister::OnTickLister | ( | ) |
List the object periodically. (To the cluster master) Throttled.
HRESULT GrayLib::cClientLister::RequestAddToListAsync | ( | bool | bSecure, |
const char * | psz1, | ||
const char * | psz2 | ||
) |
HRESULT GrayLib::cClientLister::RequestAddToListSync | ( | bool | bSecure, |
const char * | psz1, | ||
const char * | psz2 | ||
) |
GrayLib::cClientLister::UNITTEST_FRIEND | ( | cClientLister | ) |
|
static |
Cant update any more frequent than this. 10 minutes. Local Clock must be accurate to this interval.
bool GrayLib::cClientLister::m_bServerAsync |
This server can do secure. HTTPS and/or UDP crypto.
bool GrayLib::cClientLister::m_bServerSecure |
cHashCode GrayLib::cClientLister::m_PassToken |
My security hashcode. for my claimed name. m_pszAppId + m_pszName + Password. will add Time/k_IntervalMin to send to the server.
const char* GrayLib::cClientLister::m_pszAppId |
This server can do async.
What sort of thing am i listing ? like cSecureId::m_sAppId
const char* GrayLib::cClientLister::m_pszName |
My unique name that i have claimed. like cSecureId::m_sUserId.
cNetAddrName GrayLib::cClientLister::m_Server |
what server am i reporting to ?