[erlang-questions] multiple instances of gen_server

Matthew O'Gorman mogorman@REDACTED
Fri Oct 26 01:19:01 CEST 2007


you are correct, it would probably help if i read the docs more carefully....

mog

On 10/25/07, Ulf Wiger <ulf@REDACTED> wrote:
> 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