[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ADTPro Issue Transferring IIgs-->WinXP



schmidtd wrote:
On Mar 5, 7:17 pm, "Polymorph" <polymorp...@hotmail.com> wrote:

David,

I sent you an email to your my-deja email address, but haven't heard
back from you yet. I'll copy the email that I sent you here:

Sorry, that address has been gone since Google bought Dejanews.  You
can get a hold of me from the adtpro.sourceforge.net project page -
Sourceforge will handle the email translation.


I have found the area of code that is causing my transfers to fail -
it is in SerialTransport.java in the readByte() method. It seems that
you set the ports timeout dependent upon the argument given, however,
is this necessary for every byte?

There are situations that need a timeout, and situations that don't.
As I hacked the timeout code into the base, not thinking it through
particularly carefully, that was the solution I came up with in the
shortest amount of time.  It would make more sense to have different
read methods that either did or did not care about timeouts.

A very low-overhead way to handle non-critical timing timeouts is to
use a suitably low-frequency periodic interrupt routine to poll the
in-process task(s) to see if there has been any progress since the last,
or last N, polls.  This allows escaping a stuck task without the severe
overhead of setting and resetting timeouts on every task, particularly
high-frequency ones.

-michael

NadaNet networking for Apple II computers!
Home page:  http://members.aol.com/MJMahon/

"The wastebasket is our most important design
tool--and it's seriously underused."