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