Connection to servers does not block the process anymore

This commit is contained in:
Florent Le Coz
2014-02-22 21:42:24 +01:00
parent 61ca40fa0e
commit 99aba5667d
10 changed files with 111 additions and 32 deletions
+2 -2
View File
@@ -20,6 +20,7 @@ class XmppComponent: public SocketHandler
public:
explicit XmppComponent(const std::string& hostname, const std::string& secret);
~XmppComponent();
void on_connection_failed(const std::string& reason) override final;
void on_connected() override final;
void on_connection_close() override final;
void parse_in_buffer() override final;
@@ -38,9 +39,8 @@ public:
void clean();
/**
* Connect to the XMPP server.
* Returns false if we failed to connect
*/
bool start();
void start();
/**
* Serialize the stanza and add it to the out_buf to be sent to the
* server.