I may have a solution… but can not say yet if it will allow thousands of clients…
Nevertheless, it works, by making the following :
-
installed PHP socketServer (http://blog.ixti.ru/archives/116)
-
no coroutine, juste EnterFrame event with 0 timeout :
local function onEnterFrame(event)
local txt = stcp:receive("\*l")
if txt then
print("RECEIVED : "..txt)
end
end
stcp = socket.tcp()
stcp:connect("socketserver IP","socketserver port")
stcp:settimeout(0)
Runtime:addEventListener( "enterFrame", onEnterFrame )
this is a my first step…
If it may help.
[import]uid: 9079 topic_id: 2877 reply_id: 10271[/import]
