why erl_accept() encounter an ERROR

suresh saragadam sureshsaragadam@REDACTED
Tue Oct 19 10:51:54 CEST 2004


This solved my problem, 
 
An Erlang started with a long node name cannot communicate with a node started with a short node name. 
 
when i started Erlang Node with long node nome in the other system no error found 
and program runs fine
 
before : 
 
I communicated c node with short node name this coused error erl_accept 
 
erl -sname foobar -setcookie passwd
 
after : 
 
later i started erlang node with long node name program is running fine
and i changed the code in erlang sending process to long node name 
 
erl -name foobar -setcookie passwd

 
ex for long node name foobar@REDACTED 
ex for short node name foobar
 
this solved my problem 
 
regards
 

suresh saragadam <sureshsaragadam@REDACTED> wrote:
Hi, 
 
I am using erl_interface for connection Erlang and C
 
connection established and working fine with one system and when i am working with the same program on other system 'elr_accept' ERROR is reflected
 
if ((fd = erl_accept(listen, &conn)) == ERL_ERROR)
  {
/*      printf("Error %d %d", ERL_ERROR, fd); */
   erl_err_quit("erl_accept");
  }
 
please let me know what may the reason
 
And one big doubt can we use erl_interface with out using this fn in the example given in reference manual for connection c node

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

		
---------------------------------
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20041019/3bd30368/attachment.htm>


More information about the erlang-questions mailing list