global_name_server question.
Vladimir Ulogov
gandalf@REDACTED
Wed Jun 2 23:07:01 CEST 1999
On Thu, 3 Jun 1999, Torbjorn Tornkvist wrote:
> Did you use the same cookie on the erlang side ?
In get_names.c:
erl_connect_init(42, "thecookie", 0);
> Did you start erlang as a distributed node ?
yes, sure:
rohan:/local/andorra _ /local/erlang/bin/erl -name server -setcookie
thecookie
Erlang (JAM) emulator version 47.4.1
Eshell V47.4.1 (abort with ^G)
(server@REDACTED)1>
-----------------------
sockfd = erl_connect("server@REDACTED");
names = erl_global_names(sockfd, &count);
printf("%d,%d\n", sockfd, count);
-----------------------
Output:
3,0
=======================================================
Vladimir I. Ulogov (gandalf@REDACTED)
tel: 973-236-6464 or 6463
fax: 973-236-2090
"Where lands meets water. Where earth meets air. Where body meets
mind. Where space meets time. We like to be on one side, and look
at the other." D.Adams "Mostly harmless"
More information about the erlang-questions
mailing list