#include <ping.h>
Public Member Functions | |
Ping (BotKernel *) | |
Construcor. | |
void | setPonged (bool) |
Set ponged value. | |
bool | getPonged () |
Get ponged value. | |
Private Attributes | |
bool | ponged |
Indicate if the server has sended a good pong. |
This class provides methods to manage ping events and test connection with the server
Definition at line 43 of file ping.h.
Ping::Ping | ( | BotKernel * | b | ) |
Construcor.
Constructor
Definition at line 34 of file ping.cpp.
References Plugin::author, Plugin::bindFunction(), Plugin::description, IN_FIRST_WORD, IN_LOOP, IN_TYPE_HANDLER, Plugin::name, setPonged(), and Plugin::version.
bool Ping::getPonged | ( | ) |
Get ponged value.
Get ponged value
Definition at line 61 of file ping.cpp.
References ponged.
Referenced by checkConnection().
void Ping::setPonged | ( | bool | value | ) |
bool Ping::ponged [private] |
Indicate if the server has sended a good pong.
Definition at line 47 of file ping.h.
Referenced by getPonged(), and setPonged().