Implement the PING on a server or the gateway itself

fix #2575
This commit is contained in:
Florent Le Coz
2014-11-12 08:14:56 +01:00
parent 80789c2e92
commit 12eeb4d11e
4 changed files with 25 additions and 0 deletions
+6
View File
@@ -85,6 +85,12 @@ public:
void send_irc_participant_ping_request(const Iid& iid, const std::string& nick,
const std::string& iq_id, const std::string& to_jid,
const std::string& from_jid);
/**
* Directly send back a result if it's a gateway ping or if we are
* connected to the given IRC server, an error otherwise.
*/
void on_gateway_ping(const std::string& irc_hostname, const std::string& iq_id, const std::string& to_jid,
const std::string& from_jid);
/***
**