[erlang-questions] Erlang C Communication - process completes but nodes are not connected
Thu Jan 31 16:22:38 CET 2008
I am using C node as client
#define PORT 6666
int sockfd, epmdfd;
struct in_addr addr;
if(!erl_connect_init(69, "SFEWRG34AFDSGAFG35235", 0))
printf("\nerror in initialisation");
printf("\nafter error in init");
printf("node=%s, host=%s, alive=%s, creation=%d\n ",
/*This is the short host name outgoing connect routine */
getchar(); //for checking
if((sockfd = erl_connect("node1@REDACTED")) < 0)
// if((sockfd = erl_connect("")) < 0)
printf("\nsock = %d\n", sockfd);
and Erlang node as server 'node1@REDACTED'
Steps to run Erlang node :
erl -setcookie SFEWRG34AFDSGAFG35235 -name node1
Created a file named $HOME/.hosts.erlang having contents as
The output for c file upon execution is
[root@REDACTED otp_src_R12B-0]# ./mytest
Initializing ... done.
node=c69@REDACTED, host=localhost, alive=c69, creation=0
sock = 3
but at erlang node when i execute the command :
i get the output as :
That is no node is connected to it....
Now the point is C node has successfully connected ....
Why Erlang node is not showing it as connected....
Do we need to register the C node with EPMD even when it is acting as a
Do we need to register Erlang node with EPMD as well and if yes the how do
we do that..
Note : I am using putty to connect to single linux server (FC8).
Appreciate your help...
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions