Skip to content

Instantly share code, notes, and snippets.

View Silverbaq's full-sized avatar

Steffen Mogensen Silverbaq

View GitHub Profile

Keybase proof

I hereby claim:

  • I am Silverbaq on github.
  • I am silverbaq (https://keybase.io/silverbaq) on keybase.
  • I have a public key whose fingerprint is 0F41 B8DB 2A07 9ED6 2A11 C4DB 8FC8 F5F6 EE3D 97B4

To claim this, I am signing this object:

@Silverbaq
Silverbaq / Server.kt
Created January 1, 2018 21:15
A simple socket-server written in Kotlin
package dk.im2b
import java.io.OutputStream
import java.net.ServerSocket
import java.net.Socket
import java.nio.charset.Charset
import java.util.*
import kotlin.concurrent.thread
@Silverbaq
Silverbaq / Client.kt
Created August 31, 2019 19:54
A simple socket client in Kotlin
import java.io.OutputStream
import java.net.Socket
import java.nio.charset.Charset
import java.util.*
import kotlin.concurrent.thread
fun main(args: Array<String>) {
val address = "localhost"
val port = 9999