[erlang-questions] process exits while calling gen_tcp:listen

Mikage Sawatari mikage@REDACTED
Fri Jan 11 05:28:38 CET 2008


In the original code, accept is called.
The sample is an excerpt of only the problem part.

The problem is that the succeeding line of gen_tcp:listen is not executed.

Thank, you.


On 1/11/08, Brian Cully <bcully@REDACTED> wrote:
>         You need to accept on this socket in the listentest process,
> otherwise it exits almost immediately. gen_tcp:listen/2 is only
> suitable for binding to a port with a set of options. Once you've
> bound the port, you still need to accept connections on it in order to
> do anything.
>
> -bjc
>
> On 10-Jan-2008, at 22:21, Mikage Sawatari wrote:
>
> > erl -boot start_sasl -s listentest start
>
>


-- 
-----------------------------------------------------------------------
SAWATARI Mikage (SANO Taku)



More information about the erlang-questions mailing list