diff options
author | Edoardo La Greca | 2025-08-12 18:02:04 +0200 |
---|---|---|
committer | Edoardo La Greca | 2025-08-12 18:08:23 +0200 |
commit | 1e50cf9c224d03896f176f3718ff80ef1659e9c2 (patch) | |
tree | a4eff2d5acf5db1780e34f49daba566ed2ce3fa4 /src/main/kotlin/Connection.kt | |
parent | c03cb8abf4cb48e9816d8f2642e6e60823627689 (diff) |
move InMessage, OutMessage, TransportLayer, and TransportLayerJavaNet to net package
Diffstat (limited to 'src/main/kotlin/Connection.kt')
-rw-r--r-- | src/main/kotlin/Connection.kt | 18 |
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. */ |