summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanzZ <hanzz.k@gmail.com>2012-09-12 05:36:27 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-09-12 18:31:26 (GMT)
commitca8ee84e53e7d4910a7c17cf05e70b0b3377c9c3 (patch)
tree922f41140933e9a86f7178a5a932ad19162cc3c4 /Swiften/FileTransfer/SOCKS5BytestreamServerSession.h
parent55a5d78d1e9e5c56173d13345e2b303422389737 (diff)
downloadswift-contrib-ca8ee84e53e7d4910a7c17cf05e70b0b3377c9c3.zip
swift-contrib-ca8ee84e53e7d4910a7c17cf05e70b0b3377c9c3.tar.bz2
Add support for pause/resume using Bytestream for SOCKS5BytestreamServerSession.
Copyright (c) 2012 Jan Kaluza Licensed under the Simplified BSD license. See Documentation/Licenses/BSD-simplified.txt for more information.
Diffstat (limited to 'Swiften/FileTransfer/SOCKS5BytestreamServerSession.h')
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerSession.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerSession.h b/Swiften/FileTransfer/SOCKS5BytestreamServerSession.h
index 4557a36..ed77df8 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServerSession.h
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerSession.h
@@ -54,6 +54,7 @@ namespace Swift {
void process();
void handleDataRead(boost::shared_ptr<SafeByteArray>);
void handleDisconnected(const boost::optional<Connection::Error>&);
+ void handleDataAvailable();
void sendData();
private:
@@ -64,5 +65,6 @@ namespace Swift {
int chunkSize;
boost::shared_ptr<ReadBytestream> readBytestream;
boost::shared_ptr<WriteBytestream> writeBytestream;
+ bool waitingForData;
};
}