summaryrefslogtreecommitdiff
path: root/src/main/kotlin/ProtocolTranslator.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/ProtocolTranslator.kt')
-rw-r--r--src/main/kotlin/ProtocolTranslator.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/kotlin/ProtocolTranslator.kt b/src/main/kotlin/ProtocolTranslator.kt
index eaa415f..f7b114f 100644
--- a/src/main/kotlin/ProtocolTranslator.kt
+++ b/src/main/kotlin/ProtocolTranslator.kt
@@ -27,9 +27,12 @@ interface ProtocolTranslator {
* @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.
+ * @throws InvalidMessageException if the received message is invalid.
+ * @throws RErrorException if the received message is an R-error message.
+ * @throws MsizeValueTooBigException if the received `msize` value is bigger than what the client requested.
+ * @throws UnknownVersionException if the version negotiation failed.
*/
- fun version(msize: UInt, version: String): String?
+ fun version(msize: UInt, version: String)
/**
* Perform authentication.