[erlang-questions] using a socket to send and receive

Roberto Ostinelli <>
Fri Aug 20 16:17:37 CEST 2010


2010/8/19 zabrane Mikael <>:
> A small typo in the last call:
>  [...]
>    sock_loop_lazy(Sock, Len, [Rest1], BuffLen - Len).

thank you all.

still, i wish you could set the amount of bytes to receive from tcp
when setting the {active, once} option in inet, in a way similar to:

gen_tcp:setopts(Sock, [{active, once}, {recv_len, 16}]).

hopefully the otp team will consider this a nice-to-have little addition.

cheers,

r.


More information about the erlang-questions mailing list