polling only on socket, or can there be a trigger?
Dr. Hawkins
dochawk at gmail.com
Fri May 8 11:05:21 EDT 2015
On Fri, May 8, 2015 at 7:48 AM, Mark Waddingham <mark at 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
More information about the use-livecode
mailing list