for the server to know when receives data and when the receive was complete