process communication

Wes James comptekki@REDACTED
Wed Mar 16 05:04:17 CET 2011


>From this site:

http://undefined.org/c4-1/slides/slides.html

I did this:

erl -name bob@REDACTED -cookie secret

1> register(adder, c4_adder:start()).
true
2> c4_adder:add(10, adder).
{ok,10}

$ erl -name alice@REDACTED -cookie secret

line line copied from page -> 1> c4_adder:add(10, {adder, 'bob@REDACTED'}).
line line copied from page -> {ok,20}

but when I do the last line, I get:

(alice@REDACTED)1> c4_adder:add(10, {adder, 'bob@REDACTED'}).
{error,timeout}

when I do regs().

I see nothing.

If I do nregs().  I see adder.  Why is alice not talking to bob?

thx,

-wes


More information about the erlang-questions mailing list