[erlang-questions] Generating data of Erlang data-types in C
Jayson Vantuyl
kagato@REDACTED
Tue Sep 29 05:46:41 CEST 2009
This is actually pretty challenging. It is in no way a stupid question.
You might try ei (to marshall the external term binaries) or
ei_connect (to be a full-blown Erlang node).
http://www.erlang.org/doc/apps/erl_interface/index.html
On Sep 28, 2009, at 8:41 PM, Volodymyr G. Lukiianyk wrote:
> Hi.
>
> Sorry if this question appears to be stupid. Well, my knowledge of
> Erlang is next
> to zero.
>
> Here is the problem description. There is some network application
> (E_app)
> written in Erlang which expects data received from network to be in
> form of an
> Erlang tuple with possible elements of atom, tuple and list types.
> This data
> needs to be formed by a program written in C (C_app). This problem,
> of course,
> could be solved with a help of a separate "translator" application
> written in
> Erlang, which would receive data from C_app in more C-friendly
> format and send it
> to E_app in Erlang-specific format. But full solution in C is much
> more preferable.
>
> Is there any way (some library?) to create Erlang-specific data from
> C application?
>
> Thanks in advance.
>
> ________________________________________________________________
> erlang-questions mailing list. See http://www.erlang.org/faq.html
> erlang-questions (at) erlang.org
--
Jayson Vantuyl
kagato@REDACTED
More information about the erlang-questions
mailing list