// affichage a la reception private void receive(Message msg) { this.log("Received " + msg.getContent()); }
// envoi d'un message (l'envoi se fait via la couche transport) public void send(Message msg, Node dest) { this.log("Send " + msg.getContent() + " to " + dest.getID()); this.transport.send(getMyNode(), dest, msg, this.mypid); }