1 -- Copyright (c) 2011, 2014. The SimGrid Team.
2 -- All rights reserved.
4 -- This program is free software; you can redistribute it and/or modify it
5 -- under the terms of the license (GNU LGPL) which comes with this package.
10 log:print("My ip is: "..job.me.ip())
17 if job.me.ip() == job.nodes[1].ip then
18 rpc.call(job.nodes[2], {"call_me", job.me.ip()})
25 function call_me(from)
26 log:print("I received an RPC from "..from)
29 events.thread("SPLAYschool")
31 log:print("Simulation finished")