summaryrefslogtreecommitdiff
path: root/src/main/kotlin/TransportLayer.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/TransportLayer.kt')
-rw-r--r--src/main/kotlin/TransportLayer.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/TransportLayer.kt b/src/main/kotlin/TransportLayer.kt
index d4a9b12..8778592 100644
--- a/src/main/kotlin/TransportLayer.kt
+++ b/src/main/kotlin/TransportLayer.kt
@@ -47,4 +47,11 @@ interface TransportLayer : Closeable {
* @throws java.io.IOException if the message could not be correctly received.
*/
fun receive(length: ULong): Array<UByte>
+
+ /**
+ * Gives the caller a "receiver" (i.e. an instance of Iterable) from which raw data of any length can be read.
+ *
+ * @return The receiver.
+ */
+ fun receiver(): Iterable<UByte>
} \ No newline at end of file