In my client application, I have a timer that continually sends a string packet every few seconds to the server. At times, the server sends a packet to the client requesting a response from the client in the form of a string packet.

Occasionally, the timer is sending a packet just after the server requests a response from the client and the two strings merge as one packet, which of course the server can no longer interpret.

Is there a way to make sure that the two strings are sent as separate packets?

Thanks for your help.

David