Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use send/recv instead of put/get
[simgrid.git] / examples / java / ping_pong / Receiver.java
index a35426d..1f0cf4e 100644 (file)
@@ -24,7 +24,7 @@ public class Receiver extends simgrid.msg.Process {
     
       Msg.info("try to get a task");
         
-      PingPongTask task = (PingPongTask)Task.get(0);
+      PingPongTask task = (PingPongTask)Task.receive(getHost().getName());
       double timeGot = Msg.getClock();
       double timeSent = task.getTime();