OpenNETCF connection manager problem

  • Thread starter Thread starter Francesco
  • Start date Start date
F

Francesco

Hi everybody,
In my application I use connection manager to dial a connection
created via code, calling the guid of a destination also created via
code; the steps are the following
- Create new Ras entry (e.g. NokiaGPRS)
- Create new Destination entry (e.g. GPRS)
- Bind the connection with the destination
- ConnectionManager.Connect(GPRS.guid)

Everything works fine, the connection is established, but if I do an
httpwebrequest or I try to open the web browser, I can't browse!! and
also the call to the method ConnectionManager.Disconnect(handle of the
connection just established) has no effect!
If I call DNS resolve instead, everything works fine.

I can't connect to the "default internet setting" destination, because
I have to be able to choose between di8fferent connecitons, like GPRS
or UMTS, and the only way to do this is using OpenNETCF connection
managers is to bind them to different destinations.

I'm using HP iPaq 5550, pocket pc 2003, connecting to a nokia 6310i
GPRS via bluetooth.
How can I solve this problem?
I need to do everything via code, it's too much easy to ceate
connections via pocket pc GUI :(

Thanks for your answers
Francesco
 
Disconnect method does not work with GPRS connnections on PPC2003. It seems
to be a result of changes in the GPRS behavior in PPC2003 - "always on"
mode.

As for PIE not working with a connection established by you - check the
settings in the PIE options. Is connection mode set to automatic? This is a
wild shot, but worth checking.
 
Thanks Alex for your answer.

Now I can browse the web using explorer, I changed the url mapping
using DMProcessConfigXML function: all the urls in the form *://*.*/*
use the destination just dialled.
If I just browse, I'm able to disconnect the connection.
If I do a http request via code, I can't.

So there is no way to disconnect from gprs via code?

Francesco
 
I was going to say "No", but apparently iMate2 phone has a menu option to do
that. I do not know at this point how. Someone has suggested that you could
enumerate RAS connections and disconnect the ones that are connected
 
I'll take a look at that tip. But first I'm going to try another way -
in the source borwesr in the opennetCf site, I see that there is a new
version of connection manager class, and on changelog.txt I read that
you have
" 13: * - Fixed handle leakage on disconnect"

I want to try the new class first.

Thank anyway
Francesco
 
If I enumerate RAS connections and disconnect the ones that are
connected, The connection is terminated (I see it form the cell
phone), but the ppc connection manager doesn't realize that, and
thinks to be still connected.
You can see the two arrows on top of screen, saying that you are
connected, but the network is (obviously!) unreachable.
And you even cannot dial (using OpenNetCF connection manager) another
connection, because the connection manager thinks to be still
connected....

I think I'm giving up... the only way to disconnect is to tap the
arrows on the screen and then to tap the "disconnect" button... uff!!

Francesco
 
Back
Top