![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPingClient.h>
Public Member Functions | |
cPingClient (const IPingProtocol *pForm) | |
virtual | ~cPingClient () |
HRESULT | PingSendGeneric (const cNetAddress &AddrServer, const BYTE *pData, size_t iLen) |
HRESULT | PingSendEcho (cPingClientQuery &server, TIMESYSD_t nTimeThrottle=cTimeSys::k_FREQ *10) |
HRESULT | onTickPingSimple (cPingClientQuery &server) |
UNITTEST_FRIEND (cPingClient) | |
![]() | |
cPingCommon (const IPingProtocol *pForm) | |
virtual | ~cPingCommon () |
HRESULT | OpenPing (const cNetAddress &AddrListen, bool bICMP=false) |
void | ClosePing () |
virtual HRESULT | onTickPing (OUT BYTE *pPayload, OUT size_t &nPayloadLen, OUT cNetAddress &SockAddr) |
Additional Inherited Members | |
![]() | |
cNetSocket | m_Socket |
the UDP socket i listen and send on. More... | |
const IPingProtocol * | m_pForm |
What type of ping protocol are we ? Ping packet formatter. More... | |
![]() | |
static const size_t | k_SIZE_MAX = 1400 |
max size for UDP PING_QTY type packets. include prefix, header and payload. More... | |
Send out a UDP or ICMP packet to some server.
GrayLib::cPingClient::cPingClient | ( | const IPingProtocol * | pForm | ) |
|
virtual |
HRESULT GrayLib::cPingClient::onTickPingSimple | ( | cPingClientQuery & | server | ) |
get simple response to my ping. assumes tracking only one server. cPingClientQuery DONT use this if tracking multiple servers.
HRESULT GrayLib::cPingClient::PingSendEcho | ( | cPingClientQuery & | server, |
TIMESYSD_t | nTimeThrottle = cTimeSys::k_FREQ * 10 |
||
) |
Send out a MSGTYPE_ECHO_REQ. assume server will respond to this. expect response back on sending port. OpenPing() nTimeThrottle = only send this so often. don't overload the server.
HRESULT GrayLib::cPingClient::PingSendGeneric | ( | const cNetAddress & | AddrServer, |
const BYTE * | pData, | ||
size_t | iLen | ||
) |
Send out a generic UDP or ICMP blob of data as a request.
GrayLib::cPingClient::UNITTEST_FRIEND | ( | cPingClient | ) |