summaryrefslogtreecommitdiff
path: root/demo/src/main/kotlin/Main.kt
diff options
context:
space:
mode:
authorEdoardo La Greca2025-08-18 21:09:11 +0200
committerEdoardo La Greca2025-08-18 21:09:11 +0200
commit7341ead2aade10ea1b833e94275277658741883a (patch)
tree46495f24c54278d50aa0da5046822fbe502f3f14 /demo/src/main/kotlin/Main.kt
parent1e50cf9c224d03896f176f3718ff80ef1659e9c2 (diff)
switch to multi-module project structure
Diffstat (limited to 'demo/src/main/kotlin/Main.kt')
-rw-r--r--demo/src/main/kotlin/Main.kt20
1 files changed, 20 insertions, 0 deletions
diff --git a/demo/src/main/kotlin/Main.kt b/demo/src/main/kotlin/Main.kt
new file mode 100644
index 0000000..d04b135
--- /dev/null
+++ b/demo/src/main/kotlin/Main.kt
@@ -0,0 +1,20 @@
+import except.UnresolvableHostException
+import net.TransportLayerJavaNet
+import kotlin.system.exitProcess
+
+fun main(args: Array<String>) {
+ val myUsername = ""
+ val myPassword = ""
+ val npconn: Connection
+
+ try {
+ npconn = Connection(TransportLayerJavaNet("net!9p.mydomain.com!564"))
+ } catch (uhe: UnresolvableHostException) {
+ println("failed to connect :(")
+ exitProcess(1)
+ }
+
+ // TODO: add walk and stat
+
+ npconn.disconnect()
+} \ No newline at end of file