From 031f9ca91ade7fbb9e31c82545401b8a5531e539 Mon Sep 17 00:00:00 2001
From: xsipewe 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
+ up, and unregistering names in the Notice 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. -
-Retrieves 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.
+Registers a name in
Returns
This function unregisters a name from Global. -
-The function returns 0 on success, or -1 on failure.
+Unregisters a name from
Returns
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
Looks up a name in
If
On success, the function returns an Erlang pid containing the address
+ of the specified name, and the node is initialized to
+ the node name where