diff options
author | Edoardo La Greca | 2025-08-01 17:07:47 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-01 17:08:29 +0200 |
commit | 81e45b37e317ac44bf1e1def1be221e48fab7f72 (patch) | |
tree | f0ac58e952954ef477d8867f59b43ac228d75746 /src/main/kotlin/NetworkPacketTransporter.kt | |
parent | 309c5c1a8e43a7504978e434a7c3bd82c51748ff (diff) |
comment out receiveUntil in NetworkPacketTransporter
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. * |