In your receiver code, how are you determining the entire data string has been sent?