diff options
author | Edoardo La Greca | 2025-07-25 19:43:09 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-07-25 19:43:09 +0200 |
commit | aede05ff29b2b467677bfb6e872454f4cde4f41f (patch) | |
tree | 1d01c0f562b45c627652c52b64f1d40e286f6da5 /src/main/kotlin/NinePTranslator.kt | |
parent | a12b81fb538349f5e39eae8c69b5c766b878099e (diff) |
manage tags internally
Diffstat (limited to 'src/main/kotlin/NinePTranslator.kt')
-rw-r--r-- | src/main/kotlin/NinePTranslator.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/NinePTranslator.kt b/src/main/kotlin/NinePTranslator.kt index 0bbcb9d..ebb04c5 100644 --- a/src/main/kotlin/NinePTranslator.kt +++ b/src/main/kotlin/NinePTranslator.kt @@ -7,6 +7,8 @@ TODO: * The [NinePTranslator] interface provides methods that coincide 1:1 with each request and response type in the 9P * protocol, except for `Rerror` which is handled at occurrence. * + * Tags are supposed to be managed internally by the class that provides the implementation. + * * Trivia: comments for each method are taken from each message type's manual page in section 5. */ interface NinePTranslator { @@ -15,15 +17,13 @@ interface NinePTranslator { * * 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(tag: SizedMessageField, msize: SizedMessageField, version: String): String? + fun version(msize: SizedMessageField, version: String): String? /** * Perform authentication. |