hi, it should be called prior to ur Socket Operations like, Send/Rcv o like
that..
since event loop is for user generated or Some Manager generated event Handling
Loop,
the N/W related things will be mostly handled by ur code . ... so You will have
to check it b4 doing any send receive..
So its not in event loop (since its standard n all the events r handled by ur
pgm or respective managers..) but its in ur program other functions..

Ya, if U want to test Network, then another method is there,

NetLibOpenCount( AppNetRefnum, &openCount );

if ( openCount > 0 ) then its OK, otherwise Err;

For Ur Reference, Just Refer "FingerNet" application in Examples.

Rest Best in Next
Abhijit.





"Gaurav Palvia" <[EMAIL PROTECTED]> on 06/27/2000 12:24:16 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (bcc: Abhijit Mhetre/LTITLPUN)

Subject:  Re: Connection Refresh



thanx Abhijit but can u suggest where should i use this function.I guess in
the event loop or somewhere else.

----- Original Message -----
From: Abhijit Mhetre <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 9:38 AM
Subject: Re: Connection Refresh


>
>
>
> Hello, When palm goes to sleep mode, Net connection is also closed, means
dead.
>
> For refreshing the connections,
>
> NetLibConnectionRefresh
>
> Purpose This routine is a convenience call for applications. It checks the
> sta-tus
> of all connections and optionally tries to open any that were
> closed.
>
> Rest Best in Next
> Abhijit
>
>
>
>
> "Gaurav Palvia" <[EMAIL PROTECTED]> on 06/26/2000 07:14:49 PM
>
> Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
>
> To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
> cc:    (bcc: Abhijit Mhetre/LTITLPUN)
>
> Subject:  Connection Refresh
>
>
>
> hi folks,
>     I have a doubt.
> What happens to the network connections of an application which is running
> when the Palm device goes to sleep mode
>  are all the network connections  closed or they remain alive.
>
>  If all the network connections are closed then is there any way to keep
> them alive even if the palm device goes to sleep mode.
>
> Thanx a lot
> Gaurav
>
>
>
> If the Palm device goes to sleep mode then all the network connections are
> closed or they remain active.
>
>
> --
> 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/


--
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/

Reply via email to