summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-11-10 21:04:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-11-10 21:04:55 (GMT)
commit66ced3654ad295478b33d3e4f1716f66ab4048b5 (patch)
tree8783f2a3c51b51ab83a567c9064c5f65aadee188 /Swiften/Client/ClientSession.cpp
parent3914231a023e36881c2a760a3d8973ffdd2a18ad (diff)
downloadswift-66ced3654ad295478b33d3e4f1716f66ab4048b5.zip
swift-66ced3654ad295478b33d3e4f1716f66ab4048b5.tar.bz2
Even more Client refactoring.
Diffstat (limited to 'Swiften/Client/ClientSession.cpp')
-rw-r--r--Swiften/Client/ClientSession.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swiften/Client/ClientSession.cpp b/Swiften/Client/ClientSession.cpp
index ed5d27d..a185ea0 100644
--- a/Swiften/Client/ClientSession.cpp
+++ b/Swiften/Client/ClientSession.cpp
@@ -25,13 +25,14 @@ ClientSession::ClientSession(
state(Initial),
stream(stream),
needSessionStart(false) {
+}
+
+void ClientSession::start() {
stream->onStreamStartReceived.connect(boost::bind(&ClientSession::handleStreamStart, shared_from_this(), _1));
stream->onElementReceived.connect(boost::bind(&ClientSession::handleElement, shared_from_this(), _1));
stream->onError.connect(boost::bind(&ClientSession::handleStreamError, shared_from_this(), _1));
stream->onTLSEncrypted.connect(boost::bind(&ClientSession::handleTLSEncrypted, shared_from_this()));
-}
-void ClientSession::start() {
assert(state == Initial);
state = WaitingForStreamStart;
sendStreamHeader();