Glenn,

I believe there is a counter in netlib that keeps track of the number of open connections. If you open a socket at the beginning of your program and do something that forces a connection to the network (like for instance a gethostbyname) and leave that socket open until you close your program, you won't keep getting the dialog because the counter will never get to zero.
There may be a caveat. If the system powers down and closes the netlib, you may get errors if you try to manipulate the socket you created because it was closed out from underneath you. So you'll have to trap whatever event you get when the device goes to sleep and close your socket, or prevent the device from going to sleep (which is how I solved the problem).

-Ted


At 01:48 PM 2/12/2003 -0500, you wrote:

That is what I am trying to do, but my hands are somewhat tied with this
HTTP library. I see no way to do that.

On Wed, 12 Feb 2003, Steve Mann wrote:

> >I am trying to avoid the long "establishing connection" period on the
> >wireless...this could be a problem.
>
> Those dialogs only appear when you open NetLib. Only open it once and
> don't close it until you are all done. You should be able to open and
> close multiple sockets with no problem.
>
> Regards,
> Steve Mann
>
>

--
Glenn Ford
National Library of Medicine
Bethesda, MD. USA


--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Ted Beisler
SPRUCE Computer Systems, Inc.
[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