connect() returns a boolean
This commit is contained in:
1 parent
2ecb637f0c
commit
983477084c
4 files changed
+9
-7
No files matched your search
@@ -46,9 +46,9 @@ XmppComponent::~XmppComponent()
|
||||
{
|
||||
}
|
||||
|
||||
void XmppComponent::start()
|
||||
bool XmppComponent::start()
|
||||
{
|
||||
this->connect("127.0.0.1", "5347");
|
||||
return this->connect("127.0.0.1", "5347");
|
||||
}
|
||||
|
||||
void XmppComponent::send_stanza(const Stanza& stanza)
|
||||
|
||||
@@ -25,9 +25,10 @@ public:
|
||||
void parse_in_buffer() override final;
|
||||
|
||||
/**
|
||||
* Connect to the XMPP server
|
||||
* Connect to the XMPP server.
|
||||
* Returns false if we failed to connect
|
||||
*/
|
||||
void start();
|
||||
bool start();
|
||||
/**
|
||||
* Serialize the stanza and add it to the out_buf to be sent to the
|
||||
* server.
|
||||
|
||||
Reference in new issue
Block a user