Last active
April 5, 2019 17:36
-
-
Save thealmikey/7cb1b4f3b8bd07a68378ef2fae530e9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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