Erlang echo server with eLite?

Piotr Daruk piotr.daruk@REDACTED
Fri Jul 26 11:12:41 CEST 2002


I have attached my new code.

Yes! I also thought, that there is no set_cookie function. Yet, look at
erlang.erl that is linked during compilation to echo prog. and client prog.
there is a definition of this function. Please note that echo server and
client works correctly when I'm running it on Erlang enviroment.

On one Linux console I start:
erl -sname echo_node
then I start echo
(echo_node@REDACTED) 1>echo:main([]).
{server_awaits}
true
(echo_node@REDACTED) 2>

On another linux console I start:
erl -sname client_node
then I run client and I got:
(client_node@REDACTED) 1>client:main(["6","6"]).
6
[linux]$

So it works?! But after compilation when I am trying to run ./echo and
./client on the shell I got the error {undef, [{auth,set_cookie,2}]}. I was
thinking and I got know that maybe erl runs some processes (like inet_kernel
or something) and if I want to run my programmes on a shell, maybe I should
start such process by my self on each program?

What do you think?

Cheers,
Piotr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 285 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: echo.erl
Type: application/octet-stream
Size: 332 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erlang.beam
Type: application/octet-stream
Size: 5946 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: erlang.erl
Type: application/octet-stream
Size: 5942 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.erl
Type: application/octet-stream
Size: 531 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20020726/af70b7e7/attachment-0004.obj>


More information about the erlang-questions mailing list