diff options
Diffstat (limited to 'src/main/kotlin/NetworkPacketTransporter.kt')
-rw-r--r-- | src/main/kotlin/NetworkPacketTransporter.kt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/NetworkPacketTransporter.kt b/src/main/kotlin/NetworkPacketTransporter.kt index e12a6ac..eef0aea 100644 --- a/src/main/kotlin/NetworkPacketTransporter.kt +++ b/src/main/kotlin/NetworkPacketTransporter.kt @@ -48,8 +48,8 @@ abstract class NetworkPacketTransporter : Closeable { * * @throws java.io.IOException if the message could not be correctly transmitted. */ - abstract fun transmit(payload: Array<UByte>) +/* /** * Receive a payload until a byte occurs, which marks the end of the message. The byte is discarded after being read * and is not returned. @@ -58,11 +58,11 @@ abstract class NetworkPacketTransporter : Closeable { * [receiveFixed] instead, which is usually more efficient. * * @param untilByte The byte that marks the end of the message. - * + * @return the received payload. * @throws java.io.IOException if the message could not be correctly received. */ - abstract fun receiveUntil(untilByte: Byte): List<Byte> - + abstract fun receiveUntil(untilByte: UByte): Array<UByte> +*/ /** * Receive a payload with fixed length. If zero, nothing is read. * |