peer message decode method