peer: add endpoint type
message types