summaryrefslogtreecommitdiff
path: root/src/main/kotlin/Connection.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/Connection.kt')
-rw-r--r--src/main/kotlin/Connection.kt18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main/kotlin/Connection.kt b/src/main/kotlin/Connection.kt
index ff12656..f2cdd15 100644
--- a/src/main/kotlin/Connection.kt
+++ b/src/main/kotlin/Connection.kt
@@ -2,6 +2,9 @@ import except.MsizeValueTooBigException
import except.RErrorException
import except.UnaccessibleFileException
import except.UnknownVersionException
+import net.InMessage
+import net.OutMessage
+import net.TransportLayer
import java.io.IOException
import java.math.BigInteger
@@ -10,12 +13,11 @@ import java.math.BigInteger
* described in [ProtocolTranslator]. Details about methods related to 9P can be found in [ProtocolTranslator]. Remember
* to disconnect using [disconnect] after use.
*
- * Details about network-related topics can be found in [TransportLayer] and the implementation of choice.
+ * Details about network-related topics can be found in [net.TransportLayer] and the implementation of choice.
*
* Details about 9P messages and methods can be found in [ProtocolTranslator].
*
* @param transLay The networking API backend of choice.
- *
* @throws except.UnresolvableHostException if the host resolution made by [transLay] failed.
*/
class Connection(transLay: TransportLayer) : ProtocolTranslator {
@@ -50,15 +52,15 @@ class Connection(transLay: TransportLayer) : ProtocolTranslator {
}
/**
- * Handy function to create an [InMessage] instance and check for errors. After successfully using this function, it
- * is guaranteed that both no error occurred while reading the incoming message and the message is not of type
- * R-error.
+ * Handy function to create an [net.InMessage] instance and check for errors. After successfully using this
+ * function, it is guaranteed that both no error occurred while reading the incoming message and the message is not
+ * of type R-error.
*
- * It uses [tl] and [maxSize] for instancing the [InMessage] class.
+ * It uses [tl] and [maxSize] for instancing the [net.InMessage] class.
*
* @return A pair of: (1) a nullable string (which can be: `null` if no error occurred, empty if an error occurred
- * with no message, or non-empty with the error message) and (2) the optional [InMessage] instance (null if an error
- * occurred).
+ * with no message, or non-empty with the error message) and (2) the optional [net.InMessage] instance (null if an
+ * error occurred).
* @throws except.InvalidMessageException if the received message is invalid.
* @throws except.RErrorException if the received message is an R-error message.
*/