Erlang echo server with eLite?

Piotr Daruk piotr.daruk@REDACTED
Thu Jul 25 15:13:10 CEST 2002


Sorry! For such questions, but I'm a freshman to use an Erlang. How should I
set cookies to make this work?

Cheers;
Piotr

----- Original Message -----
From: "Francesco Cesarini" <francesco@REDACTED>
To: "Piotr Daruk" <piotr.daruk@REDACTED>
Sent: Thursday, July 25, 2002 3:12 PM
Subject: Re: Erlang echo server with eLite?


> Don't forget to set the cookies else it will not work.
>
> Francesco
> --
> http://www.erlang-consulting.com
>
> Piotr Daruk wrote:
>
> >Thanx!!
> >Sorry for not being specific!!! Yet, you have assumed correctly! Now I
> >understand the Erlang messaging mechanism. I will try that as soon as
> >possible.
> >
> >Best regards.
> >Piotr
> >----- Original Message -----
> >From: "Luke Gorrie" <luke@REDACTED>
> >To: "Piotr Daruk" <piotr.daruk@REDACTED>
> >Cc: "Fredrik Linder" <fredrik.linder@REDACTED>;
> ><erlang-questions@REDACTED>
> >Sent: Thursday, July 25, 2002 2:26 PM
> >Subject: Re: Erlang echo server with eLite?
> >
> >
> >>"Piotr Daruk" <piotr.daruk@REDACTED> writes:
> >>
> >>>Hi Fredrik!
> >>>
> >>>    First of all thanx for such quick answer! Please note that I don't
> >>>want to use erlang environment to run my programmes. I want to compile
> >>>them and move to another Linux machine. That is why I'm using "aLike
> >>>2.0" compiler.  Both programmes can be compiled without any
> >>>problem. Than I start ./echo and ./client.
> >>>
> >>I'm assuming the client and server run as separate programs (separate
> >>unix processes).
> >>
> >>>The client can send only Integers. But when the client tries to send
> >>>a message that is: echosrv ! {ClientPid, N} error occurs:
> >>>{badarg,[{client,main,1}]}.
> >>>
> >>The expression "echosrv ! {ClientPid, N}" will try to send a message
> >>to the registered process 'echosrv' in the current node (i.e. unix
> >>process). If your echosrv is actually registered in another process,
> >>then it will crash (with 'badarg') because the current node has no
> >>echosrv process.
> >>
> >>To send the message to a remote node, you should do:
> >>  "{echosrv, othernodename@REDACTED} ! {ClientPid, N}"
> >>
> >>Which will use distribution (over a TCP socket) to send the message
> >>to the other process.
> >>
> >>I don't know if distribution is easy to use with eLite - Joe?
> >>
> >>P.S., the latest version of eLite (aka Stand Alone Erlang) at
> >>http://www.sics.se/~joe/sae.html is 3.1.
> >>
> >>Cheers,
> >>Luke
> >>
> >
> >
>
>



More information about the erlang-questions mailing list