diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-01 14:08:08 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-01 14:08:08 (GMT) |
commit | 1d23fbe7acbfed25578958fb24aa75416f2ab737 (patch) | |
tree | 792e9f641900c263bc974f69debdf0494dfe4d9a /Swiften/Client/Client.h | |
parent | 90055ade3899ffa1d0ee700d218a259b39052270 (diff) | |
download | swift-contrib-1d23fbe7acbfed25578958fb24aa75416f2ab737.zip swift-contrib-1d23fbe7acbfed25578958fb24aa75416f2ab737.tar.bz2 |
Reuse server-generated resources.
Once a new method has been implemented in Client, this will re-use
a server-generated resource for re-connections within the same
Swift session. This provides a stable resource for the session,
preventing MUC ghosts and similar artifacts due to server or network
failures, without disclosing additional information like hostnames
in the resource.
Resolves: #563
Diffstat (limited to 'Swiften/Client/Client.h')
-rw-r--r-- | Swiften/Client/Client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Client/Client.h b/Swiften/Client/Client.h index cb07036..ca729a7 100644 --- a/Swiften/Client/Client.h +++ b/Swiften/Client/Client.h @@ -39,6 +39,7 @@ namespace Swift { void setCertificate(const String& certificate); void connect(); + void connect(const JID& jid); void connect(const String& host); void disconnect(); @@ -54,6 +55,8 @@ namespace Swift { return iqRouter_; } + JID getBoundJID(); + public: boost::signal<void (const ClientError&)> onError; boost::signal<void ()> onConnected; |