<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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?</div><div>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?</div><div><br></div><div>{ok, Listen} = gen_tcp:listen(80, [{packet,0},<br><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span>binary,<br> {active, true}])<br><br><span class="Apple-tab-span" style="white-space: pre; "> </span>Loop:<br><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><font class="Apple-style-span" color="#FF4649">receive<br> </font><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" color="#FF4649"> </font></span><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" color="#FF4649"> </font></span><font class="Apple-style-span" color="#FF4649">{tcp, S, Bin}</font> -><br><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span><span class="Apple-tab-span" style="white-space: pre; "> </span>...</div><div><br></div><br><div><div>ÔÚ 2011-3-29£¬ÏÂÎç12:24£¬ Jack Moffitt дµÀ£º</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Heiti SC'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">m what I've seen, {active, on</span></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Heiti SC'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div><br></div></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>