polling only on socket, or can there be a trigger?

Dr. Hawkins dochawk at gmail.com
Sat May 9 13:19:07 EDT 2015


One other possibility I've contemplated: the socket routine never closes
until the socket does.  So on the initial socket, something like

on newClient sckt
repeat while socket is among the lines of the openSockets
read from socket sckt
if it is not empty then
doSomething it
end if
wait 2 seconds with messages
end repeat
end newClient

But this is still a polling approached; I'd really like a message generated
when something is written to an existing socket.
-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list