diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-03-24 20:31:02 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-03-24 20:31:02 +0100 |
commit | ffc820e234ebba39a0f04607f9a0fb044fe31b73 (patch) | |
tree | 66ece312b85f89b15e10c9f91444641d8e07c552 /src/xmpp/xmpp_parser.hpp | |
parent | e196d2f1f400f5c9634ed42fcbdf5c5fb63a13fb (diff) | |
download | biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.gz biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.bz2 biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.tar.xz biboumi-ffc820e234ebba39a0f04607f9a0fb044fe31b73.zip |
Reconnected immediately to the XMPP whenever it closes the connection
Diffstat (limited to 'src/xmpp/xmpp_parser.hpp')
-rw-r--r-- | src/xmpp/xmpp_parser.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_parser.hpp b/src/xmpp/xmpp_parser.hpp index df9cda7..b87ee6d 100644 --- a/src/xmpp/xmpp_parser.hpp +++ b/src/xmpp/xmpp_parser.hpp @@ -35,6 +35,10 @@ public: public: /** + * Init the XML parser and install the callbacks + */ + void init_xml_parser(); + /** * Feed the parser with some XML data */ int feed(const char* data, const int len, const bool is_final); @@ -43,6 +47,10 @@ public: */ int parse(const int size, const bool is_final); /** + * Reset the parser, so it can be used from scratch afterward + */ + void reset(); + /** * Get a buffer provided by the xml parser. */ void* get_buffer(const size_t size) const; |