各种有用的erlang行为
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
223 B

  1. -module(pong3).
  2. -behavior(gen_apu).
  3. -compile([export_all, nowarn_export_all]).
  4. start() ->
  5. gen_apu:start(?MODULE, 0, []).
  6. init(_Args) ->
  7. {ok, 0}.
  8. mPing(_State, _From) ->
  9. {reply, pong}.
  10. mPing(_State) ->
  11. kpS.