ã¾ã大層ãªãããããªãã¦ã200è¡ã¡ãããããã®ãã®ãªãã§ããã -module(simple_chord). -compile(export_all). -record(peer,{id,predecessor,successor,data}). start() -> crypto:start(), Node0 = spawn(?MODULE,init,[]), put(0,true), register(node0,Node0). join() -> node0 ! {join_rand,self()}, receive NodeID -> io:fwrite("This node is ~w\n",[NodeID]), register(get_node(NodeID),spawn(?MODULE,init,[NodeID])), timer:apply_after(100,?MOD
{{#tags}}- {{label}}
{{/tags}}