first commit

This commit is contained in:
2026-05-24 21:15:44 +03:00
parent ea2cf48281
commit 544624ea0c
18 changed files with 640 additions and 0 deletions

19
src/main/kotlin/Main.kt Normal file
View File

@ -0,0 +1,19 @@
package su.sonoma
import io.ktor.network.selector.*
import io.ktor.network.sockets.*
import io.ktor.utils.io.*
import io.ktor.utils.io.core.readBytes
import kotlinx.coroutines.*
import kotlinx.io.readByteArray
import java.io.FileInputStream
fun main(args: Array<String>) {
when (args.firstOrNull()) {
"server" -> startServer()
"client" -> startClient()
else -> {
println("Usage: server | client")
}
}
}