[erlang-questions] Does Erlang have global register process name?

Jeffm jeffm@REDACTED
Thu Mar 11 03:49:11 CET 2010


Take a look at register_name/2 and whereis_name/1 both part of the 
global module. Does that do what your after?

Jeff.

On 11/03/10 1:34 PM, 钱晓明 wrote:
> Hi, I want to send text messages between two computers, and I use 'register'
> BIF to register atom name for one computer. But I find that I can not send
> message by this:
>    pong ! hello.
> I must use this :
>    { pong, kyle@REDACTED } ! hello.
> So the registered name is only used in one node ? Not in all nodes using
> same cookies? The first method got 'bad argument' exception.
> If I want to register a name for all nodes using same cookies, how can I do
> it?
>
> Thanks! I will appreciate if anyone can give some relative resource url to
> me!
>
>    



More information about the erlang-questions mailing list