Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reimplement splay/lua methods
[simgrid.git] / examples / lua / SimSplay / splay_school.lua
1 dofile 'sim_splay.lua'
2
3 function SPLAYschool()
4     log:print("My ip is :" ..job.me.ip())
5     events.sleep(5)
6     rpc.call(job.nodes[3],{"call_me","Arg_test"})
7     events.sleep(5)
8     os.exit()
9 end
10
11 function call_me(position)
12     log:print("I received an RPC from node "..position);
13 end
14
15 events.thread("SPLAYschool")
16 start.loop()
17
18
19