LNet sometimes sends string twice/skips sending next one in the same string? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- aidv · 2015-08-23 13:11 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 Code: [Select]myCmd=myValue but the iOS sometimes received Code: [Select]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? ---------------------------------------------------------------------- aidv · 2015-08-25 14:14 I made a workaround which basically checks an incoming string if it contains a potential "double-command" and splits the string into two strings and then processes those two strings independantly.