From 917599228501ae235ffaf01b515c8b06cf8595b0 Mon Sep 17 00:00:00 2001 From: Edoardo La Greca Date: Sat, 12 Jul 2025 19:14:26 +0200 Subject: tmp --- src/main/kotlin/NinePTranslator.kt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/main/kotlin/NinePTranslator.kt') diff --git a/src/main/kotlin/NinePTranslator.kt b/src/main/kotlin/NinePTranslator.kt index c976cd9..51b722e 100644 --- a/src/main/kotlin/NinePTranslator.kt +++ b/src/main/kotlin/NinePTranslator.kt @@ -1,3 +1,5 @@ +import java.util.Optional + /* TODO: - add arguments to methods @@ -12,8 +14,18 @@ TODO: interface NinePTranslator { /** * Negotiate protocol version. + * + * This must be the first message sent on the 9P connection and no other requests can be issued until a response has + * been received. + * Tag should be NOTAG ((ushort)~0). + * + * @param tag Should be NOTAG ((ushort)~0). + * @param msize The maximum length, in bytes, that the client will ever generate or expect to receive in a single + * 9P message. + * @param version Should be "9P2000", which is the only defined value. + * @return a possible error. */ - fun version() + fun version(tag: SizedMessageField, msize: SizedMessageField, version: String): String? /** * Perform authentication. -- cgit v1.2.3