<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV style="FONT: 10pt arial"></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you for all your responses.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have started the code below in Node
1.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'd like to send a message from Node 2 to Node
1 an</FONT><FONT face=Arial size=2>d display it in Node 1</FONT></DIV>
<DIV><FONT face=Arial size=2>I don't figure out what should I modify in
this code to do this.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>%%%%%%%%%%%%%%%%</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-module(logger).<BR>-export([start/0,
stop/0]).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>start() -><BR> spawn(fun()
-> init() end).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>stop() -><BR> logger ! {stop,
self()}.<BR> <BR>init() -><BR>
register(logger, self()),<BR> process_flag(trap_exit,
true),<BR> loop().</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>loop() -><BR>
receive<BR> {call, Caller, Msg} -><BR>
{self(), sender,
Msg},<BR> io:format('Logger closed ~w ~n',
Msg)<BR> loop();<BR> {stop, Caller}
-><BR> io:format('Logger closed
~n'),<BR> exit(normal)<BR>
end.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>%%%%%%%%%%%%</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Eduardo Figoli</FONT></DIV>
<DIV><FONT face=Arial size=2>INSwitch Solutions</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><BR> </DIV></FONT></BODY></HTML>