[erlang-questions] Non-blocking for gen_tcp:accept?
Zhongzheng Liu
liuzhongzheng2012@REDACTED
Fri Aug 25 04:06:40 CEST 2017
Hi all:
Socket can be set to {active, true} to receive data by message instead
of using gen_tcp:recv.
But there is no {active_accept, true} option to make accept
non-blocking. We have to use the blocking function gen_tcp:accept,
why?
Is it a good idea to deliver a message like {tcp, accept, Socket} to
the accepting process when a connection is coming?
Thanks
Liu Zhongzheng
More information about the erlang-questions
mailing list