<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have attached my new code.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Yes! I also thought, that there is no set_cookie function. Yet, look
at<BR>erlang.erl that is linked during compilation to echo prog. and client
prog.<BR>there is a definition of this function. Please note that echo server
and<BR>client works correctly when I'm running it on Erlang
enviroment.<BR><BR>On one Linux console I start:<BR>erl -sname echo_node<BR>then
I start echo<BR>(<A href="mailto:echo_node@linux">echo_node@linux</A>)
1>echo:main([]).<BR>{server_awaits}<BR>true<BR>(<A
href="mailto:echo_node@linux">echo_node@linux</A>) 2><BR><BR>On another linux
console I start:<BR>erl -sname client_node<BR>then I run client and I
got:<BR>(<A href="mailto:client_node@linux">client_node@linux</A>)
1>client:main(["6","6"]).<BR>6<BR>[linux]$<BR><BR>So it works?! But after
compilation when I am trying to run ./echo and<BR>./client on the shell I got
the error {undef, [{auth,set_cookie,2}]}. I was<BR>thinking and I got know that
maybe erl runs some processes (like inet_kernel<BR>or something) and if I want
to run my programmes on a shell, maybe I should<BR>start such process by my self
on each program?<BR><BR>What do you
think?<BR><BR>Cheers,<BR>Piotr<BR></DIV></BODY></HTML>