[erlang-questions] How to call a locally Pid cross node on Distributed Application!
Vlad Dumitrescu
vladdu55@REDACTED
Wed Apr 16 10:39:34 CEST 2008
Hi,
2008/4/16 wenew zhang <wenewboy@REDACTED>:
> On gen_server:call descriptions,we can call a process like :
> ServerRef = Name | {Name,Node} | {global,GlobalName} | pid()
> i have some questions:
>
> 1.if my application have many local register,how to use {name,node} call a
> Pid?
> such as i run many process register as {local,?MODULE}
> 2.I try gen_fsm:sync_send_event({Pid,Node},{Data}),it's doesn't work.
> 3.I try gen_fsm:sync_send_event({Name,Node},{Data}),it's doesn't work.
I'm not sure if this answers your question, but if you have a pid,
then you can just use it, it doesn't matter if it is a local one or a
remote one.
You don't need to write {Pid, Node}, just Pid is enough.
best regards,
Vlad
More information about the erlang-questions
mailing list