question about "active" option (regarding gen_tcp)

Sean Hinde <>
Wed Nov 7 21:13:12 CET 2001


Hi,

> 3) messages are delivered to your process.
> 
> Note: If you expect lots of incoming data to your server you should
> consider using passive sockets instead,

Or you can use the {active, once} option if you want to keep your 
packets arriving as messages. You need to ensure you always set
it again after receiving a packet or things will go very quiet!

Sean


NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list