[erlang-questions] Newbie: Problem TCP connection erlang-python

Per Hedeland <>
Thu Jan 31 18:37:43 CET 2008


"Andreas Hillqvist" <> wrote:
>
>Just a small note:
>Both raw and 0 stand for that no packaging is done.
>So there should be no difference between:
>{packet, 0} or {packet, raw}

And furthermore it's the default anyway (what else would it be?:-).
However, to Gerald, that type of code won't work in the general case -
you have no guarantee that a chunk of data you send down a TCP socket
comes out as one chunk at the other end => use one of the {packet, N}
(N /= 0) options (with the equivalent change at the Python side, of
course).

--Per Hedeland



More information about the erlang-questions mailing list