[erlang-questions] Erlang get_tcp:recv data length

Kevin A. Smith <>
Fri Feb 25 01:41:15 CET 2011


What about using {packet, line} to receive the data? This would allow you to receive and process each message separately.

--Kevin
On Feb 24, 2011, at 4:11 AM, info wrote:

> In my case, the client can send packets of messages separated by <cr><lf>.
> I don't know how many messages contain each packet (the number can change according to the time).
> 
> The solution given as example doesn't solve my problem. How can I do ?
> I tried to increase recbuf but I observe (with Network Monitor) that the TCP frames are truncated to 1024 bytes.
> 
> J-Ph. Constantin
> ITS3 Genève
> www.its3.ch



More information about the erlang-questions mailing list