Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #3469

Re: Calling Marinetti from an init

From Stephen Heumann <stephen.heumann@gmail.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Calling Marinetti from an init
Date 2017-05-02 21:13 -0500
Organization A noiseless patient Spider
Message-ID <oebe6n$lbl$1@dont-email.me> (permalink)
References <odbvhn$d7m$1@dont-email.me> <8234f03b-e97d-4c85-b9d2-a5ca53154225@googlegroups.com>

Show all headers | View raw


Hi Andrew,

On 2017-05-02 23:58:16 +0000, andrew.roughan@writeme.com said:
> Sorry for the delay in getting back to you. In the mean time I passed 
> this on to Richard and have received a response from him.

Thanks for looking into this. As you can probably guess, this relates 
to AFPBridge. Basically, whenever an AFP-over-TCP connection is open, I 
want to have a way to get control periodically (every couple seconds or 
so) and be able to send or receive data over the TCP connection. This 
is necessary to check for new messages from the server and to 
periodically send a 'tickle' message to the server to keep the 
connection alive.

The currently released version uses a run queue task for this, but that 
only works in desktop programs, and even there run queue tasks may not 
get run for a while if the program is busy with something. It also 
offers the 'fake sleep' option as a workaround, but that is really a 
hack and doesn't work with all servers.

>> If not, should Marinetti be changed to make this possible?
> 
> Richard is not able to remember why the busy flag was not used. He'd 
> like to look into this more. In the meantime, I think we can explore 
> this direction.
> I'll get you a build that sets and clears the busyflag around each toolcall.

That would be great. If you can send that to me, I can make a test 
version of AFPBridge that uses a heartbeat task (or an AppleTalk 
InstallTimer call) plus the scheduler for its periodic task, and see 
how it works.

-- 
Stephen Heumann

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Calling Marinetti from an init Stephen Heumann <stephen.heumann@gmail.com> - 2017-04-20 22:53 -0500
  Re: Calling Marinetti from an init andrew.roughan@writeme.com - 2017-05-02 16:58 -0700
    Re: Calling Marinetti from an init andrew.roughan@writeme.com - 2017-05-02 17:03 -0700
    Re: Calling Marinetti from an init Stephen Heumann <stephen.heumann@gmail.com> - 2017-05-02 21:13 -0500

csiph-web