On Fri, May 8, 2015 at 7:48 AM, Mark Waddingham <m...@livecode.com> wrote:
> 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. > It does??? I guess I'm misunderstanding the docs, then--I though it would stay at that line, rather than going on to execute. I'll have to experiment some more. THanks -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode