chat_srv.erl just coded (compile ok, not checked).