[erlang-questions] How can i communicate with a gen_server-based server

Vlad Dumitrescu vladdu55@REDACTED
Fri Mar 28 09:33:46 CET 2008


Hi,

On Fri, Mar 28, 2008 at 9:16 AM, wenew zhang <wenewboy@REDACTED> wrote:
>  i try:
>  2> Pid=authserver:start_link().
>  Authserver start_link
>  Authserver init with []
>  {ok,<0.32.0>}
>  3> Pid!{213,'root','12345'}.
>  ** exception error: bad argument
>      in operator  !/2
>         called as {ok,<0.32.0>} ! {213,root,'12345'}
>  4>
>
>  what can i do?

Try
   {ok, Pid}=authserver:start_link().
   Pid!{213,'root','12345'}.

best regards,
Vlad



More information about the erlang-questions mailing list