On 2015-05-08 16:40, Dr. Hawkins wrote:
accept and open socket cause routines to execute, and have callbacks.
Is there a way either end to be triggered when receiving a message
other
than by polling/reading to see if anything is there?
Both 'read' and 'write' have 'with message' forms so that a callback
gets invoked when the action you asked for completes.
In particular:
read from socket tSocket until empty with message "giveMeData"
Will cause "giveMeData" to be sent as soon as any data arrives on the
socket.
--
Mark Waddingham ~ [email protected] ~ http://www.livecode.com/
LiveCode: Everyone can create apps
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode