Hello there,

I'm trying to create a persistent connection application on Windows Mobile
6. I intend for this application to use mobile radios (GPRS) to communicate
with remote servers using Connection Manager for long periods of time (days).
However, there appears to be a problem with my connection manager code.

It appears to me that we are either getting killed by the network, or the
device is timing out the session. I can't figure out which.

Is there a particular set of calls to Connection Manager that need to be
made to
a) make a persistent connection that last days? (should I use always_on?)
b) register to be notified if a connection is terminated either by Windows
Mobile or the network?
c) What is the event that I should be capturing to re-establish a killed
connection manager handle?

Right now we are attempting "Get Connection Status" before making network
calls, but it doesn't seem to be working quite right.

Any help appreciated!

Re: Connection Manager and Network Timeouts by Peter

Peter
Tue Mar 11 03:39:02 CDT 2008

Connection Manager gives you the ability to pass a window handle (see the
MSDN documentation) so it will inform your window when the connection status
changes. Depending on what the status is you can then request a reconnection
or "work offline" if a connection is not possible.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Kevin" <Kevin@discussions.microsoft.com> wrote in message
news:EF96AB67-C6E3-4578-8717-22DDE8A2960D@microsoft.com...
> Hello there,
>
> I'm trying to create a persistent connection application on Windows Mobile
> 6. I intend for this application to use mobile radios (GPRS) to
> communicate
> with remote servers using Connection Manager for long periods of time
> (days).
> However, there appears to be a problem with my connection manager code.
>
> It appears to me that we are either getting killed by the network, or the
> device is timing out the session. I can't figure out which.
>
> Is there a particular set of calls to Connection Manager that need to be
> made to
> a) make a persistent connection that last days? (should I use always_on?)
> b) register to be notified if a connection is terminated either by Windows
> Mobile or the network?
> c) What is the event that I should be capturing to re-establish a killed
> connection manager handle?
>
> Right now we are attempting "Get Connection Status" before making network
> calls, but it doesn't seem to be working quite right.
>
> Any help appreciated!