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

zhangbo bo.zhang86@REDACTED
Tue Mar 29 07:32:59 CEST 2011


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} ->
				...


在 2011-3-29,下午12:24, Jack Moffitt 写道:

> m what I've seen, {active, on




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110329/c1fcfd90/attachment.htm>


More information about the erlang-questions mailing list