摘要: %%聊天的中转站,将{chan,MM,Msg}形式的信息转化为 {mm, MM, Msg}形式-module(mod_chat_controller).-export([start/3]).-import(lib_chan_mm, [send/2]).start(MM, _, _) -> process_flag(trap_exit, true), io:format("mod_chat_controller off we go ...~p~n",[MM]), loop(MM).loop(MM) -> receive {chan, MM, Msg} -> 阅读全文
posted @ 2013-10-12 21:05 Jingle Guo 阅读(375) 评论(0) 推荐(0) 编辑