Note that there are some explanatory texts on larger screens.

plurals
  1. POSame Machine Erlang communication
    primarykey
    data
    text
    <p>I need an answer to the following question to help understand what approach I should be taking to interface with Erlang. AFAIK Erlang on a SMP UNIX box uses the multi-process approach. In this case it should do same machine IPC.</p> <ol> <li>Does Erlang use UNIX domain sockets for UNIX ? </li> <li><p>Does it use named-pipes for windows ? </p></li> <li><p>If it does not implement both constructs above -- i.e., no named-pipes for windows; it must have to fallback to sockets, on windows. </p></li> <li><p>How are the above mentioned principles implemented, do they use message oriented, single-thread per channel, asynchronous constructs or is it something else ? </p></li> <li><p>If my line of reasoning above is incorrect, does it use a master-child tree and all other processes communicate -- indirectly -- through the master ? </p></li> </ol> <p>-- edit 1 --</p> <p><a href="http://www.erlang.org/doc/man/ei.html" rel="nofollow noreferrer">Link</a> to the erlang binary format documentation.</p> <p>The universal concensus is that Unix Domain Sockets outperform <a href="https://stackoverflow.com/questions/257433/postgresql-unix-domain-sockets-vs-tcp-sockets">TCP/IP</a>. I think I will try to extend Erlang to use the better primitives provided. I also strongly suspect that epol and windows IOPC is not used in the TCP/IP event loop -- I will post back once I have audited the code.</p> <p>Another <a href="https://stackoverflow.com/questions/1478831/erlang-unix-domain-socket-support">SO post</a> that asserts that Erlang indeed, does not support anything other than TCP and UDP.</p> <p>There are two Erlang libraries for communication <a href="http://www.erlang.org/doc/man/erl_connect.html" rel="nofollow noreferrer"><code>Erlang node -&gt; c_node</code></a> and <a href="http://www.erlang.org/doc/man/ei_connect.html" rel="nofollow noreferrer"><code>c_node -&gt; Erlang_node</code></a></p> <p>The Erlang <a href="http://www3.erlang.org/documentation/doc-4.8.1/pdf/sockets-1.0.5.pdf" rel="nofollow noreferrer">module for sockets</a> allows Unix Dom Sockets to be opened under UNIX.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload