![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPingGray.h>
Public Types | |
enum | HEAD_TYPE { HEAD_LENL = 0 , HEAD_LENH , HEAD_MSGTYPE , HEAD_CHECK , HEAD_QTY } |
Public Member Functions | |
cPingGray (const void *pPrefix, size_t iPrefixSize) | |
virtual size_t | MakePingPacket (OUT BYTE *pData, MSGTYPE_TYPE eMsgType, const void *pPayload, size_t nPayloadSize) const override |
this is the default prefix for those that talk Gray UDP protocol. More... | |
Public Attributes | |
const void *const | m_pPrefix |
all packets have this static Prefix. TX and RX. More... | |
size_t const | m_nPrefixSize |
fixed length Prefix to id this packet. More... | |
Static Public Attributes | |
static const cPingGray | k_Def |
this is the default prefix for those that talk Gray UDP protocol. More... | |
The Gray UDP format ping. Minimal sized. (NOT XObject,XProtocol) Prefix, Header, Payload in a block. NOT the same as ICMP based ping 'PREFIX','LENL','LENH','MSGTYPE','PAYLOAD DATA'
4 byte header after the m_pPrefix
|
inline |
|
overridevirtual |
this is the default prefix for those that talk Gray UDP protocol.
Make a ping packet that sends single UINT32 payload (just the time in Echo case) ASSUME: Size of pData is >= m_nPrefixSize + PING_OVERHEAD_QTY + dwPayloadSize.
|
static |
this is the default prefix for those that talk Gray UDP protocol.
size_t const GrayLib::cPingGray::m_nPrefixSize |
fixed length Prefix to id this packet.
const void* const GrayLib::cPingGray::m_pPrefix |
all packets have this static Prefix. TX and RX.