You can add "END" to the end of a message being sent, when the receiving end parses the received data and sees a "END", it will know it received everything it was supposed to.

Sunny