summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Clayton <alex.clayton@isode.com>2016-02-05 12:29:28 (GMT)
committerAlex Clayton <alex.clayton@isode.com>2016-02-09 11:26:11 (GMT)
commit2a0022faeefc38a987e3ad55087f3dd45c35a9fb (patch)
treed6f05250c48038b06fd0d1266b5d212bfff55c42 /src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java
parent14ce99a513cf4ac8ff4a2305bd5917285dc14106 (diff)
downloadstroke-2a0022faeefc38a987e3ad55087f3dd45c35a9fb.zip
stroke-2a0022faeefc38a987e3ad55087f3dd45c35a9fb.tar.bz2
Finish porting S5BTransportSession
Finish porting S5BTransportSession to Stroke (previously a lot of it had been commented out). To do so had to introduce a heirachy to the SOCKS5BytestreamSession classes (which were being used as type parameters for the Transport Session) and refactor some of the onByteSent signals to insure they were all of the same type (Integer). Also update PortingProgress.txt to update to give status of some of the porting files. Test-information: Ran unit tests they all still pass. Change-Id: I4295b3a8829c208e65f5a46d19c35090f8c55865
Diffstat (limited to 'src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java')
-rw-r--r--src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java b/src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java
new file mode 100644
index 0000000..2f64857
--- /dev/null
+++ b/src/com/isode/stroke/filetransfer/SOCKS5AbstractBytestreamSession.java
@@ -0,0 +1,36 @@
+/* Copyright (c) 2016, Isode Limited, London, England.
+ * All rights reserved.
+ *
+ * Acquisition and use of this software and related materials for any
+ * purpose requires a written license agreement from Isode Limited,
+ * or a written license from an organisation licensed by Isode Limited
+ * to grant such a license.
+ *
+ */
+package com.isode.stroke.filetransfer;
+
+import com.isode.stroke.signals.Signal1;
+
+/**
+ *
+ */
+public abstract class SOCKS5AbstractBytestreamSession {
+
+ /**
+ * Constructor
+ */
+ public SOCKS5AbstractBytestreamSession() {
+ // Empty Constructor
+ }
+
+ abstract public void startReceiving(WriteBytestream writeStream);
+
+ abstract public void startSending(ReadBytestream stream);
+
+ abstract public void stop();
+
+ public final Signal1<FileTransferError> onFinished = new Signal1<FileTransferError>();
+ public final Signal1<Integer> onBytesSent = new Signal1<Integer>();
+ // boost::signal<void (unsigned long long)> onBytesReceived;
+
+}