[erlang-questions] multiple instances of gen_server

Ulf Wiger ulf@REDACTED
Fri Oct 26 01:10:17 CEST 2007


2007/10/25, Matthew O'Gorman <mogorman@REDACTED>:
> if you read the man page or the docs, you dont have to register a name
> to start start_link, also you can pass any term for the name so you
> can pass a pid for example or a tuple with a complex unique name.

If you want to register a gen_server locally, the name must be an atom.
If you register it globally, the name can be any term.

If you don't register it at all, subsequent calls to the server instance must
use the pid.

BR,
Ulf W



More information about the erlang-questions mailing list