Call (or send event) erlang function from C app/library -


i have application , library interacts low-level hardware protocols. i'm writing erlang application fast parsing of data , send distributed databases. however, i'm newbie @ erlang , i've stuck @ simple thing: efficient way connect c library(or application) erlang , how notify erlang block of data ready processing (e.g. how call erlang function c library or trigger event)? time important here, , shall use -- simple ports, driver ports or nifs? or there better ways solving task?

as option, can run c application hidden erlang node using erl_interface lib. http://www.erlang.org/doc/apps/erl_interface/ei_users_guide.html#id56593 . , send messages real erlang node http://www.erlang.org/doc/apps/erl_interface/ei_users_guide.html#id60866, or use rpc - remote proc calls perform http://www.erlang.org/doc/apps/erl_interface/ei_users_guide.html#id57714


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -