first commit
This commit is contained in:
19
src/main/kotlin/Main.kt
Normal file
19
src/main/kotlin/Main.kt
Normal 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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user