Open rocaltair opened 10 years ago
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
Do you really read my codes?
I tried the *l pattern, but some buffer were discarded.
*l
Do you know what's going on?
use client:settimeout(0) and receive without 'pattern' http://www.lua.org/pil/9.4.html
coroutine in cocos2d-x is maybe unsupported. This is a rumour. So I don't use coroutine feature in quick-cocos2d-x.
coroutine
settimeout(0) is already in SocketTCP .
settimeout(0)
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