Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cPingServer.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cPingServer_H
7 #define _INC_cPingServer_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cPingCommon.h"
13 
14 namespace GrayLib
15 {
17 
19  : public cPingCommon
20  {
25 
26  typedef cPingCommon SUPER_t;
27 
28  private:
29  UINT32 m_dwStatusCode;
30  cStringA m_sInfo;
31 
32  public:
33  cPingServer(const IPingProtocol* pForm /* = &cPingGray::k_Def */ );
34  virtual ~cPingServer();
35 
36  virtual UINT32 get_PingStatusCode() const
37  {
39  return m_dwStatusCode;
40  }
41  void put_PingStatusCode(UINT32 dwStatusCode)
42  {
44  m_dwStatusCode = dwStatusCode;
45  }
46 
47  virtual cStringA get_PingInfo() const
48  {
51  return m_sInfo;
52  }
54  {
56  m_sInfo = s;
57  }
58 
59  virtual HRESULT onTickPing(OUT BYTE* pPayload, OUT size_t& nPayloadLen, OUT cNetAddress& SockAddr) override;
60  HRESULT onTickPingSimple();
61 
63  };
64 }
65 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cNetAddr.h:31
Definition: cPingCommon.h:65
Definition: cPingServer.h:20
virtual cStringA get_PingInfo() const
Definition: cPingServer.h:47
void put_PingStatusCode(UINT32 dwStatusCode)
Definition: cPingServer.h:41
UNITTEST_FRIEND(cPingServer)
void put_PingInfo(cStringA s)
Definition: cPingServer.h:53
virtual UINT32 get_PingStatusCode() const
Definition: cPingServer.h:36
Definition: cPingCommon.h:16
Definition: cMesh.h:22
UNITTEST2_PREDEF(cQuadtree)