more re-organisation to new name

This commit is contained in:
Adam 2021-12-01 18:12:34 +01:00
parent 633e898f3c
commit 8c75b47a96
37 changed files with 219 additions and 197 deletions

View file

@ -1,5 +1,5 @@
plugins {
id("dev.adamko.factoriowebmap.archetype.kotlin-jvm")
id("dev.adamko.kafkatorio.lang.kotlin-jvm")
}
//group = "${rootProject.group}.server"

View file

@ -1,25 +1,22 @@
package dev.adamko.ktrcon
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
fun main(): Unit = runBlocking {
KtRconClient3(
"localhost",
27715,
Password("coh9oongoojahX4")
"localhost",
27715,
Password("coh9oongoojahX4")
).use { client ->
// client.send(PacketType.AUTH_REQUEST, "passwrd")
client.send(PacketType.AUTH_REQUEST, "coh9oongoojahX4")
delay(Duration.seconds(10))
delay(10.seconds)
client.send(PacketType.EXEC_COMMAND, "/help")
delay(Duration.seconds(10))
delay(10.seconds)
}
}