Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cPingLister.h
Go to the documentation of this file.
1 //
4 //
5 #ifndef _INC_cPingLister_H
6 #define _INC_cPingLister_H
7 #ifndef NO_PRAGMA_ONCE
8 #pragma once
9 #endif
10 
11 #include "cPingClient.h"
12 
13 namespace GrayLib
14 {
16 
18  : public cPingClient
19  {
23 
24  typedef cPingClient SUPER_t;
25 
26  public:
27  static const NET_PORT_t k_PortDef = 2594;
28  static const char* k_pszAddrDef; // "http://menasoft.asuscomm.com/" or other ? GRAY_ADDR_LISTER
29 
33 
34  public:
35  cPingLister();
36  virtual ~cPingLister();
37 
38  HRESULT InitData(cStringA sData);
39  HRESULT PingSendLister(TIMESYSD_t nTimeThrottle = cTimeSys::k_FREQ * 60 * 60 * 4);
40 
41  HRESULT RequestLister(cStringA sPrefix, cStringA& sResponse);
42 
44  };
45 }
46 #endif // _INC_cPingLister_H
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cNetAddrName.h:21
Definition: cPingClient.h:50
Definition: cPingLister.h:19
cTimeSys m_timeSent
Oldest time i sent and haven't yet gotten a response.
Definition: cPingLister.h:31
cStringA m_sData
the payload data block for registration. (name="sdf",url="sdf",status=x,etc)
Definition: cPingLister.h:32
static const char * k_pszAddrDef
Definition: cPingLister.h:28
UNITTEST_FRIEND(cPingLister)
cNetAddrName m_AddrServer
the hostname of the list server to be looked up via DNS.
Definition: cPingLister.h:30
Definition: cTimeSys.h:93
static const TIMESYS_t k_FREQ
milliSec per Sec
Definition: cTimeSys.h:100
Definition: cMesh.h:22
WORD NET_PORT_t
WinINet calls ports NET_PORT_t INTERNET_PORT = a service.
Definition: cNetPort.h:21
UNITTEST2_PREDEF(cQuadtree)
INT32 TIMESYSD_t
Time delta. signed milli-Seconds Span. cTimeSys::k_DMAX, cTimeSys::k_INF = MAILSLOT_WAIT_FOREVER.
Definition: cTimeSys.h:28