p2p manager, peer, swarm: add some initial logics to send messages to peers