On 25-Mar-99 Gavin Maxwell wrote:
> I'm using NetLibSelect to block while waiting for input on either a
> network socket or stdin (eg penDown etc). I'm passing a timeout value of
> SysTicksPerSecond() - so it should timeout after 1 second... but it
> doesn't... :-(
(snip)
> It never seems to timeout, so the 'if' test never evaluates to true...
> also it only *seems* to respond to user events the first time round... ie
> network events on the socket don't cause NetLibSelect to return... after
> an initial whack on the screen with my stylus it will then start
> responding to incoming network events on the socket...
Make sure you are resetting the rFDs wFDs and eFDs each time through the
loop. And what does the rest of your event loop look like? Did you specify
a zero timeout for the EvtGetEvent() ? When you are doing both
NetLibSelect() and EvtGetEvent() within your event loop you should set a zero
timeout for the EvtGetEvent().
You can have a look at my crappy code if you want :)
http://www.iag.net/~chrisf/pilot/pilot.html
Good luck. HTH.
/* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */