Completed the standard message reading code in PeerListener.