<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=503443009-25072002>Hi
Piotr</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=503443009-25072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Arial CE" size=2><SPAN
class=503443009-25072002>Perhaps there are others who can help you better than
I, but here goes nothing.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face="Arial CE" size=2><SPAN
class=503443009-25072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face="Arial CE" size=2><SPAN
class=503443009-25072002>Using the !-operator one can communicate between
erlang processes on differnet erlang nodes, which can be located on different
hosts. So, I guess that's a yes to your question. However, in order to
do so must all involved erlang nodes have the same cookie (at the time of the
message sending) and must also have networking turned on (see doc for erl: <A
href="http://www.erlang.se/doc/doc-5.1/erts-5.1/doc/html/erl.html">http://www.erlang.se/doc/doc-5.1/erts-5.1/doc/html/erl.html</A>,
-name or -sname option to erl).</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=503443009-25072002>What
kind of error are you having with "Srv ! {self(), Msg}" ? This statement adds
the erlang term "{self(), Msg}" to the mailbox of the Srv process, which can be
read by having the Srv process execute a receive-statement (which reads one
message from the mailbox).</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=503443009-25072002></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=503443009-25072002>Best
Regards</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=503443009-25072002>/Fredrik</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=503443009-25072002></SPAN></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
owner-erlang-questions@erlang.org
[mailto:owner-erlang-questions@erlang.org]<B>On Behalf Of </B>Piotr
Daruk<BR><B>Sent:</B> den 25 juli 2002 10:29<BR><B>To:</B>
erlang-questions@erlang.org<BR><B>Subject:</B> Erlang echo server with
eLite?<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Halo!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Despite the fact I'm working
for Panasonic Poland, I'm also a student of Warsaw University of Computer
Science Dept. I'm now to write a program using functional language. I have
chosen Erlang and decided to write an echo server. Yet, I would like to
compile that to executable files either server and client. I'm using Linux
Mandreak 8.1 and eLite 2.0 that contains a compiler. The problem is that the
error occurs when I'm trying to do "Srv ! {self(), Msg}". I mean it compiles
but doesn’t work! I have already got know that there is difference when I'm
writing for eLite. For example I must do erlang:halt(). insted of halt(). What
should I do? <BR> Also, dose "Srv ! {self(), Msg}" messaging
work as pipe in Linux? Can I communicate to another process from other
terminal on the same machine?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> I'm waiting for any help!
Thanx!!!!!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Best regards.<BR>Piotr
Daruk<BR></FONT></DIV></BLOCKQUOTE></BODY></HTML>