Does anyone have any ideas on how to bodge a data arrival complete event

This is just so when the data is processed i know that the string sent is what is being processed

im using TCP protocol btw

Thanks for ideas people