Generic selectors
Exact matches only
Search in title
Search in content

C node send and receive message from erl

Viewing 1 post (of 1 total)
  • Author
  • #39892 Reply

    I am just a Msc student and do my graduation project with Erlang program.
    I wrote a small program using C with erlang library- ei_connect.
    the erlang will be started by C node and running in the background.
    I have created a global register name-‘repl’, Sending use ei_reg_send()
    and receive the echo message using ei_xreceive_msg(), while, every time
    when i can run the ei_reg_send() well and only get the ‘ERL_TICK’ from
    ei_xreceive_msg(), nothing else…..

    this problem took me long time………. and next week i have to submit
    it to my professor, please give some answer and any notice about this
    would be appreciated. please, please…….
    the following is part of my program.

    //send message
    char *reg_serv=”repl”; // repl is the erlang node registerd process
    if((rtn=ei_reg_send(&ec, fd, reg_serv, x.buff, x.index))
    io:format(“ok to run start\n”).

    reply() ->
    Rmes ->

    {any,} ! {self(), Rmes},
    io:format(“ok to send message to node c2\n”)

Viewing 1 post (of 1 total)
Reply To: C node send and receive message from erl
Your information:

<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">