summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-11 19:52:43 +0200
committerEdoardo La Greca2025-08-11 19:52:43 +0200
commit877090c8c5300a98cd20dc79d96848f74aeb4cad (patch)
tree6c9e569a0abaec52f22414d21b539b37eeae01ae
parentaf1e89a1d5e903d33682ad71539152bf6f68f53d (diff)
reflect recent changes to OutMessage in Connection
-rw-r--r--src/main/kotlin/Connection.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index 8908364..33c3a2d 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -151,7 +151,7 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
)
omsg.write(this.tl)
for (wn in wname) { // write wname elements
- OutMessage.writeString(this.tl, wn)
+ this.tl.transmit(OutMessage.convStringToBytes(wn))
}
val imsg = checkedInMessage(omsg.tag)
@@ -246,7 +246,7 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
),
emptyMap(),
mapOf(
- "data" to data
+ "data" to data.toList()
),
this.maxSize
)