Hi all!.<br>I am currently working on erlang with IC.I am trying to send a c structure to the erlang node using IC.<br><br> i have im[plemented a c server.<br><br><br>i have written the following erlang code to access to the c server<br>
-module(client).<br>-author('prasantha@localhost').<br><br>-export([produce/0,init/3]).<br><br>-define(SERVER,{rmod_random_impl,'prasantha'}).<br>-define(CLIENTMOD,'rmod_random').<br>produce() -><br>
    io:format("this outputs from produce : ~w ~w~n", [hello, world]).<br>    ?CLIENTMOD:produce(?SERVER).<br><br><br>init(Seed1, Seed2, Seed3) -><br>    ?CLIENTMOD:init([{erlang,list_to_existing_atom,["babbis@localhost"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]).<br>
<br><br>first i ran the client:init(1,2,3).<br>it s properly working<br>but  when i tryid to run the client:produce(). in erlang shell it gives the following error.<br>=ERROR REPORT==== 31-Dec-2008::18:41:09 ===<br>Error in process <0.49.0> on node 'client@localhost' with exit value: {badarg,[{erlang,list_to_existing_atom,["babbis@localhost.localdomain"]},{dist_util,recv_challenge,1},{dist_util,handshake_we_started,1}]}<br>
<br>** exception exit: {{nodedown,babbis@localhost},<br>                    {gen_server,call,<br>                                [{rmod_random_impl,babbis@localhost},<br>                                 rmod_random_produce,infinity]}}<br>
     in function  gen_server:call/3<br><br>i tryied to start a erl node using as follow<br>erl -sname client -setcookie flash<br>but it cannot be done .becouse my server node is run as babbis<br><br><br>therefore that node is active<br>
can any body tell me why this error occured?<br><br>thank you<br>