Am Mon, 2003-06-09 um 14.32 schrieb Roger Stringer:

Roger,

> Actually don't do "Always on".  Not necessary with Palm OS.
> 
> 1) Use the Event handler to generate nilEvents every, say, 5  seconds
> 
>          EventType event;
>          EvtGetEvent (&event, SysTicksPerSecond () * 5L);
> 
> 2) When you receive a nilEvent, check how much time has elapsed since the 
> last nilEvent.  If enough time has passed, (say 15 seconds) check if 
> anything is received on the socket.

But shouldn't this turn off the device, too, unless you set to not
auto-off at all or not to turn off while a network connection is
established? Simply waiting for nil events won't keep the unit awake.

-- 
Daniel Seifert <[EMAIL PROTECTED]>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to