global_name_server question.

Torbjorn Tornkvist <>
Thu Jun 3 09:17:41 CEST 1999


> sockfd = erl_connect("");
> names = erl_global_names(sockfd, &count);
> printf("%d,%d\n", sockfd, count);
> -----------------------
> Output:
> 3,0

Looks ok to me. '3' is the socket-descriptor and '0'
is the number of globally registered processes.
NB: Initially, when you start your Erlang node you don't
have any globally registered processes. Example:

unix> erl -sname hello
Erlang (BEAM) emulator version 47.4.1
 
Eshell V47.4.1  (abort with ^G)
()1> length(global:registered_names()).
0
()2> 


/Tobbe



More information about the erlang-questions mailing list