Aha! Thanx! I will look into these options then!
Chris Olson
Tom Zerucha wrote:
> On Thu, Oct 05, 2000 at 08:26:36AM -0500, Chris Olson wrote:
> > Tom Zerucha wrote:
> >
> > > On Wed, Oct 04, 2000 at 04:26:35PM -0500, Chris Olson wrote:
> > >
> > > > I can't seem to figure out how to ge tthe baud rate of the PPP
> > > > connection. Can some kind soul who has managed to figure this out
>
> > > But again, what do you really need to know or why?
> > >
>
> > Simple really. I'm putting together an app which uses cell phones and modems to
>set up an information download. We are running
> > into problems with really slow connections extending the connect time to
>unacceptable levels. I would like to detect a slow
> > connection as sonn as possible, and alert the user, giving themthe option to abort
>the connection before it lasts too long. I
> > already have an abort button active on the form, but it takes too long for the
>user to realize that they already have a bad
> > connection. I'd like to be able to detect it as soon as possible...
>
> Ah, you DON'T want the baud rate, you want the throughput. A rather
> different thing. The serial link can be at 57600 but you may only get
> a few hundred cps.
>
> The easiest way is in your socket reads to set a timeout (I think
> there is a global timeout variable in the bsd compat calls).
>
> Set the timeout and the size so you will get a short buffer at the
> "awfully" slow level and can note that, or compute the throughput - if
> you have received only 250 characters in the last second, report that.
>
> You can also get the current number of 100 Hz ticks since reset
> (TimGetTicks?) and use that to compute the throughput.
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see
>http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/