Daronee
02/19/2021, 12:48 AMrun()
function of a thread
Its like the app is receiving the data from the inputstream consistently. It always varies
Seems to be a problem when the number of bytes > ~6 for some reason?Jiddles
02/19/2021, 2:03 PMtransferTo
explictly says it maintains the order. Maybe give that a try and see if there’s any difference ?Daronee
02/19/2021, 6:27 PMsocket.inputStream.read(buffer)
was just not having it in terms of recieving Byte data. I changed my buffer from a ByteArray to a charArray and received the data using `val ch = socket.inputStream.read().toChar`and got way better results.