[erlang-questions] Client server in Erlang

Alexander Kuleshov kuleshovmail@REDACTED
Mon Nov 29 08:12:26 CET 2010


On Mon, Nov 29, 2010 at 7:08 AM, shk <kuleshovmail@REDACTED> wrote:
>
> Hello,
>
> I recently started to learn Erlang. I read book - Erlang Programming. In
> Client-Server chapter i try to run example.
>
> Code of this example: https://gist.github.com/719677
>
> This is simple client/sever example.
>
> In erlang shell i see:
>
> 1> f:start().
> true
> 2> f:allocate()
>
> When i call allocate erlang shell, emacs and other hangs.
>
> What's wrong?
>
> Thank you.
> --
> View this message in context: http://erlang.2086793.n4.nabble.com/Client-server-in-Erlang-tp3063129p3063129.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>

I find error: function reply was wrong:

Must be:

reply(Pid, Reply) ->
    Pid ! {reply, Reply}.


More information about the erlang-questions mailing list