#include <component.h>
Public Member Functions | |
Component (const std::string &ns, const std::string &server, const std::string &component, const std::string &password, int port=5347) | |
virtual | ~Component () |
void | disconnect () |
It's using XEP-0114 (Jabber Component Protocol) to authenticate with a server.
Definition at line 33 of file component.h.
Component | ( | const std::string & | ns, | |
const std::string & | server, | |||
const std::string & | component, | |||
const std::string & | password, | |||
int | port = 5347 | |||
) |
Constructs a new Component.
ns | The namespace that qualifies the stream. Either jabber:component:accept or jabber:component:connect. See XEP-0114 for details. | |
server | The server to connect to. | |
component | The component's hostname. FQDN. | |
password | The component's password. | |
port | The port to connect to. The default of 5347 is the default port of the router in jabberd2. |
Definition at line 27 of file component.cpp.
virtual ~Component | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 52 of file component.h.
void disconnect | ( | ) | [inline] |
Disconnects from the server.
Definition at line 57 of file component.h.