[erlang-questions] Local and remote sends

Bengt Kleberg bengt.kleberg@REDACTED
Tue Oct 31 12:37:48 CET 2006

On 2006-10-30 16:54, Bob Cowdery wrote:
> Hi
> I have a process that usually sends to a CNode, however, for testing I use erlang processes running in the same session. My sends are of the form:
> {any, From} ! {GatewayPid}
> When I am testing this does not work and gives an argument error on running and I have to change it to:
>>From ! {GatewayPid}
> Is there some form that will work in both situations?

is it correct that 'any' is the registered name of a process?
and that From is the node name (also atom) you want to reach?

then sending to From during testing is an error and should not work. you 
should have a pid (or registered name), not a node name.

i think i must have misunderstood something here.

    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."

More information about the erlang-questions mailing list