Questions tagged [cnode]

A program written in C that can act as (and from Erlang's point of view, treated like) a normal Erlang node.

A program written in C that can act as (and from Erlang's point of view, treated like) a normal Erlang node. See the Erlang Interoperability Tutorial User's Guide for more.

7 questions
4
votes
0 answers

erl_publish failing with partial packet

I am having a strange problem trying to bring up a C-Node Server. I am following the example from http://www.erlang.org/doc/tutorial/cnode.html. I found that I would fail at if (erl_publish(port) == -1) erl_err_quit("erl_publish"); Running epmd…
2
votes
1 answer

Implementing process linking in an Erlang C node

I know that monitoring a "process" on a C Node is not supported, but if I try to call link for a pid originating from a C Node on an Erlang node, my C Node first gets an ERL_LINK message and then few moments later an ERL_EXIT message since obviously…
Jaka
  • 1,205
  • 12
  • 19
2
votes
1 answer

Erlang C-Node erl_errno symbol not found error

I tried to use erl_errno as described in the erlang document: http://erlang.org/doc/man/erl_error.html#. However, I'm getting a symbol not found problem during linking. I'm running on Mac and here's the how the program is linked: g++…
Joe Lin
  • 450
  • 7
  • 20
1
vote
2 answers

How can distributed message sending result in a reply, if there is no registered processed on the remote node?

According to the Erlang Reference Manual, the send operator (!) syntax is Expr1 ! Expr2. It states that Expr1 can be a tuple in the form of {Name, Node}, where "Name is an atom and Node is a node name, also an atom", and "distributed message…
toraritte
  • 6,300
  • 3
  • 46
  • 67
1
vote
1 answer

How to monitor cnodes from erlang nodes

I've been building an application based on the cnode tutorial http://www.erlang.org/doc/tutorial/cnode.html and all is looking fine - my question however is, is there a way to do something similar to nodes() or net_adm:world() to get a list of the…
Martin Kristiansen
  • 9,875
  • 10
  • 51
  • 83
0
votes
1 answer

Memory corruption due to erl_interface libraries that are implemented in C

In my application I've an erlang node which periodically communicates with the C-node every 1 second to gather periodic data such as alarm and performance. The C-node is implemented in such a way that, it consists of two threads, the main thread…
Manoj
  • 23
  • 6
0
votes
1 answer

erlang c-node passing binary objects

I was following Erlang C Nodes tutorial and was trying to make a wrapper call for libXl C library. In my C node a create a BookHandle and pass it as a response for one message call. BookHandle book = xlCreateBook(); resp = erl_format("{ok, ~w}",…
SubK24
  • 63
  • 5