diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-11-12 06:16:10 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-11-12 08:12:43 +0100 |
commit | d8da7984b23bf8f30b5f8f53895cbae5be50347a (patch) | |
tree | a32beb182ca95a27670cba0005ca34f90c2875fe /src/xmpp/xmpp_component.hpp | |
parent | e1d69806ed7c92bdfe1bf632064bf68b3d1d266b (diff) | |
download | biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.gz biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.bz2 biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.tar.xz biboumi-d8da7984b23bf8f30b5f8f53895cbae5be50347a.zip |
Implement PING, user to user only (XMPP and IRC side, using CTCP PING)
ref #2757
Diffstat (limited to 'src/xmpp/xmpp_component.hpp')
-rw-r--r-- | src/xmpp/xmpp_component.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp index 6ccc753..d7f7f7a 100644 --- a/src/xmpp/xmpp_component.hpp +++ b/src/xmpp/xmpp_component.hpp @@ -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) @@ -217,6 +219,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 */ void send_iq_result(const std::string& id, const std::string& to_jid, const std::string& from); |