[erlang-questions] Erlang get_tcp:recv data length

Johan Wärlander johan@REDACTED
Thu Feb 24 14:45:22 CET 2011


That's totally application dependent. You must know how to separate
messages, and what marks the end of a number of messages or a user session.
You can never rely on gen_tcp:recv to get the full contents of an
application's message in one go.

It basically comes down to, what does the protocol look like that you're
using?

On Thu, Feb 24, 2011 at 2:25 PM, info <info@REDACTED> wrote:

> Be explicit ! How to detect the last message of a packet ?
>
> J-Ph. Constantin
> ITS3 Genève
> www.its3.ch
>


More information about the erlang-questions mailing list