Hey guys!
I am working on a server for my RPi2 which uses LNet to host a TCP port.
The client will be an iPhone, and I notice that sometimes the iOS app receives two of the same string or the first sent string and the second sent string in the same chunk of data.
For example I send the following command once myCmd=myValue
but the iOS sometimes received myCmd=myValuemyCmd=myValue
Why is this happening?
Can I flush the buffer of LNet manually before sending the next string?
Can I do some error checking to make sure that LNet has sent the previous string before I proceed sending the next one?
What can be done to assure that my strings are sent as individual strings?