Skip to content

Instantly share code, notes, and snippets.

@thealmikey
Last active April 5, 2019 17:36
Show Gist options
  • Save thealmikey/7cb1b4f3b8bd07a68378ef2fae530e9b to your computer and use it in GitHub Desktop.
Save thealmikey/7cb1b4f3b8bd07a68378ef2fae530e9b to your computer and use it in GitHub Desktop.
for (i in 1..10) {
var plainRequest = "Hello "
var byteRequest = plainRequest.toByteArray()
byteRequest[byteRequest.size - 1] = 0
println("sending request $i $plainRequest")
socket.send(byteRequest, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment