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

Andreas Hillqvist andreas.hillqvist@REDACTED
Fri Feb 1 08:13:23 CET 2008


Thank you for this information.

I was wondering what the default value was.
It was not clear to me when a read the documentation for inet and
gen_tcp moduel.

But i guess that is because that the default values can be changed?


Regards
Andreas Hillqvist

2008/1/31, Per Hedeland <per@REDACTED>:
> "Andreas Hillqvist" <andreas.hillqvist@REDACTED> 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