It's  works  on erl shell:<br><br> Pid=global:whereis_name(authserver).<br><5661.50.0><br>(<a href="mailto:indexservernode@wenewlaptop.flashpk.com.cn">indexservernode@wenewlaptop.flashpk.com.cn</a>)5> Uid=list_to_binary("root").<br>
<<"root">><br>(<a href="mailto:indexservernode@wenewlaptop.flashpk.com.cn">indexservernode@wenewlaptop.flashpk.com.cn</a>)6> Pwd=list_to_binary("12345").<br><<"12345">><br>
(<a href="mailto:indexservernode@wenewlaptop.flashpk.com.cn">indexservernode@wenewlaptop.flashpk.com.cn</a>)12> Result=gen_server:call(Pid,{213,Uid,Pwd}).<br><span style="color: rgb(255, 0, 0);">0%% the normal result</span><br>
<br>Code examples:<br>            io:format("rcv:~w AuthPid~w ~n",[Data,State#state.authsrv]),<br>            %global:sync(),<br>            Result=gen_server:cast(State#state.authsrv,{?PLLOGIN,Uid,Pwd}), <span style="color: rgb(255, 0, 0);"> %%even no data send to the authsrv,</span><br>
            io:format("Result:~w~n",[Result]),<br><br>Error Mesage:________________begin_________________________________________<br>rcv:<<0,4,97,115,100,102,0,5,115,97,102,115,100>> <span style="color: rgb(255, 0, 0);">AuthPid{<5661.50.0>}   %% the authsrv Pid </span><br>
=ERROR REPORT==== 2-Apr-2008::08:02:35 ===<br>** State machine <0.58.0> terminating <br>** Last message in was {tcp,#Port<0.115>,<br>                            <<0,6,97,97,115,97,97,97,0,5,98,98,98,98,98>>}<br>
** When State == 'WAIT_FOR_DATA'<br>**      Data  == {state,#Port<0.115>,{192,168,0,221},{<5661.62.0>}}<br>** Reason for termination = <br>** {{function_clause,[{gen,call,<br>                           [{<5661.62.0>},<br>
                            '$gen_call',<br>                            {213,<<"aasaaa">>,<<"bbbbb">>},<br>                            5000]},<br>                      {gen_server,call,2},<br>
                      {indexserver,'WAIT_FOR_DATA',2},<br>                      {gen_fsm,handle_msg,7},<br>                      {proc_lib,init_p,5}]},<br>    {gen_server,call,<br>                [{<5661.62.0>},{213,<<"aasaaa">>,<<"bbbbb">>}]}}<br>
_______________end________________________________<br>What's problem with it?<br><br>Best Regards<br><br>Wenew Zhang<br>