summaryrefslogtreecommitdiff
path: root/src/main/kotlin/ProtocolTranslator.kt
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-09 21:15:55 +0200
committerEdoardo La Greca2025-08-09 21:15:55 +0200
commit6c516e1e135430ed3a1f854aedc6a7af3c3d9fda (patch)
treebb48db3ad647456a58ecc95fd959ac0947cf061e /src/main/kotlin/ProtocolTranslator.kt
parent48922ff78c0b82be4b52c3221cb408ff01951190 (diff)
implement clunk
Diffstat (limited to 'src/main/kotlin/ProtocolTranslator.kt')
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index 8623737..cee72f4 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -128,9 +128,13 @@ interface ProtocolTranslator {
fun write(fid: UInt, offset: ULong, count: UInt, data: Iterable<UByte>): UInt
/**
- * Forget about an FID.
+ * Forget about a FID.
+ *
+ * @param fid The FID to forget.
+ * @throws except.InvalidMessageException if the received message is invalid.
+ * @throws except.RErrorException if the received message is an R-error message.
*/
- fun clunk(path: String)
+ fun clunk(fid: UInt)
/**
* Remove a file from a server.