decode the tcp header in receive