import java.io.IOException /** * This class represents a 9P connection. It provides a practical implementation with networking to the 9P methods * described in [NinePTranslator]. Details about methods related to 9P can be found in [NinePTranslator]. Remember to * disconnect using [disconnect] after use. * * Details about network-related topics can be found in [NetworkPacketTransporter] and the implementation of choice. * * Details about 9P messages and methods can be found in [NinePTranslator]. * * @param netPackTrans The networking API backend of choice. * * @throws UnresolvableHostException if the host resolution made by [netPackTrans] failed. */ class NinePConnection(netPackTrans: NetworkPacketTransporter) : NinePTranslator { /** * Networking API. */ val npt: NetworkPacketTransporter = netPackTrans /** * Disconnect from the remote host, * * @throws IOException if an I/O error occurred while closing the socket. */ fun disconnect() { this.npt.close() } // TODO: implement methods from NinePTranslator }