[erlang-questions] Re: about a tcp question in erlang

Anthony Ramine <>
Tue Mar 29 10:08:57 CEST 2011


You don't know and have no way to know.

Le 29 mars 2011 à 07:32, zhangbo a écrit :

> Thank you. How about the messages that the server receive? For example, the client send a big message A(eg. 65536 bytes), what will happen when receive the message?
> Maybe I should ask question like this: the client send a message(maybe it's big), in server loop, how many messages it will receive?
> 
> {ok, Listen} = gen_tcp:listen(80, [{packet,0},
> 					binary,
>                                        {active, true}])
> 
> 	Loop:
> 		receive
>        		{tcp, S, Bin} ->
> 				...
> 

--
Anthony Ramine
Dev:Extend
http://dev-extend.eu







More information about the erlang-questions mailing list