Implement PING, user to user only (XMPP and IRC side, using CTCP PING)

ref #2757
This commit is contained in:
Florent Le Coz
2014-11-12 08:12:43 +01:00
parent e1d69806ed
commit d8da7984b2
5 changed files with 118 additions and 1 deletions
+8
View File
@@ -24,6 +24,8 @@
#define STREAMS_NS "urn:ietf:params:xml:ns:xmpp-streams"
#define VERSION_NS "jabber:iq:version"
#define ADHOC_NS "http://jabber.org/protocol/commands"
#define PING_NS "urn:xmpp:ping"
/**
* A callback called when the waited iq result is received (it is matched
* against the iq id)
@@ -216,6 +218,12 @@ public:
*/
void send_iq_version_request(const std::string& from,
const std::string& jid_to);
/**
* Send a ping request
*/
void send_ping_request(const std::string& from,
const std::string& jid_to,
const std::string& id);
/**
* Send an empty iq of type result
*/