This module provides support for registering, looking up and unregistering names in the Erlang Global module. For more information, see the description of Global in the reference manual.
Note that the functions below perform an RPC using an open file descriptor provided by the caller. This file descriptor must not be used for other traffic during the global operation or the function may receive unexpected data and fail.
Retrieve a list of all known global names.
On success, the function returns an array of strings, each
containing a single registered name, and sets
It is the caller's responsibility to free the array
afterwards. It has been allocated by the function with a
single call to
This function registers a name in Global.
The function returns 0 on success, or -1 on failure.
This function unregisters a name from Global.
The function returns 0 on success, or -1 on failure.
If
On success, the function returns an Erlang Pid containing the address
of the given name, and node will be initialized to
the nodename where