åç´ã« erl_interface ã Inline::C ãã使ã£ãã ããªãã§ããï¼wï¼ erlang å´ã®æºå ç¹å¥ãªæºåã¯ç¡ãã ã¨ãããããéåä¿¡ããããã»ã¹ãé©å½ã«ä½ã£ã¦ããã -module(pingpong). -compile(export_all). start() -> register(pingpong, spawn(?MODULE, loop, [])). stop() -> pingpong ! stop. loop() -> receive stop -> io:fwrite("~w:stop.~n", [self()]), exit(ok); {message, Pid, Message} -> io:fwrite("Pid:~w~nMessage:~s~n", [Pid, Message]), Pid ! {message, self(), "pong"};
{{#tags}}- {{label}}
{{/tags}}