Making the process:
1. reception of header
2. parsing header
3. releasing resources for header reception
4. reception of payload
5. releasing resources for payload reception