Example #1
0
 // affichage a la reception
 private void receive(Message msg) {
   this.log("Received " + msg.getContent());
 }
Example #2
0
 // 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);
 }