error in socket code, not receiving messages on peer