lua icon indicating copy to clipboard operation
lua copied to clipboard

about cc.net.SocketTCP

Open rocaltair opened this issue 11 years ago • 3 comments

http://w3.impa.br/~diego/software/luasocket/tcp.html#receive

'*a': reads from the socket until the connection is closed. No end-of-line translation is performed;

until the connection is closed... async ... =_=b

rocaltair avatar May 19 '14 15:05 rocaltair

Do you really read my codes?

I tried the *l pattern, but some buffer were discarded.

Do you know what's going on?

zrong avatar Jul 09 '14 02:07 zrong

use client:settimeout(0) and receive without 'pattern' http://www.lua.org/pil/9.4.html

rocaltair avatar Jul 09 '14 03:07 rocaltair

coroutine in cocos2d-x is maybe unsupported. This is a rumour. So I don't use coroutine feature in quick-cocos2d-x.

settimeout(0) is already in SocketTCP .

zrong avatar Jul 09 '14 07:07 zrong