summaryrefslogtreecommitdiff
path: root/src/main/kotlin/Connection.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/Connection.kt
parent48922ff78c0b82be4b52c3221cb408ff01951190 (diff)
implement clunk
Diffstat (limited to 'src/main/kotlin/Connection.kt')
-rw-r--r--src/main/kotlin/Connection.kt13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index d5330d7..c77a381 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -258,8 +258,17 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
return count.toInt().toUInt()
}
- override fun clunk(path: String) {
- TODO("Not yet implemented")
+ override fun clunk(fid: UInt) {
+ val omsg = OutMessage(NinePMessageType.TCLUNK, this.tagGen.generate(), listOf("fid"),
+ mapOf(
+ "fid" to Pair(BigInteger(fid.toString()), 4u)
+ ),
+ emptyMap(),
+ emptyMap(),
+ this.maxSize
+ )
+ omsg.write(this.tl)
+ val imsg = checkedInMessage(omsg.tag)
}
override fun remove(path: String) {