summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger <roger.planas@isode.com>2013-10-22 14:36:24 (GMT)
committerSwift Review <review@swift.im>2013-10-28 18:22:05 (GMT)
commit4c8290e3cf0c644e84083c17d5004e15e66b7d86 (patch)
tree3dc6fa648efdf73da83d99b71956eefc58497ae5 /Sluift/SluiftClient.h
parentd0966f59c32eb613c214af936f70866254e23d9b (diff)
downloadswift-4c8290e3cf0c644e84083c17d5004e15e66b7d86.zip
swift-4c8290e3cf0c644e84083c17d5004e15e66b7d86.tar.bz2
Add port option to Sluift client connect
Provide a mechanism to allow setting both the port and hostname for a Sluift client connection. By default Sluift leave port to -1 to use the port discovered by SRV lookups, with 5222 as a fallback. With this change, the port is now manually configurable as well. Change-Id: Idef5457e95127cfa86181b462d9ef42aa4f096ff
Diffstat (limited to 'Sluift/SluiftClient.h')
-rw-r--r--Sluift/SluiftClient.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/SluiftClient.h b/Sluift/SluiftClient.h
index bedd6ba..60eae16 100644
--- a/Sluift/SluiftClient.h
+++ b/Sluift/SluiftClient.h
@@ -75,7 +75,7 @@ namespace Swift {
}
void connect();
- void connect(const std::string& host);
+ void connect(const std::string& host, int port);
void waitConnected();
bool isConnected() const;