Martin586028

Is there any way to detect if an internet connection is either via GPRS or Ethernet

We're developing an app which must connect to the server using different ports depending on the type of connection (ie. port 80 if connected by GPRS and port 8152 if connected direct to the network)

Thanks

Martin



Re: Smart Devices General Wired or GPRS

Stephen Hauck

The connection manager can give you detailed information about the connection type.





Re: Smart Devices General Wired or GPRS

Martin

Still not sure how.

I use ConnMgrEstablishConnection to create a connection using IID_DestNetInternet. This creates my connection if I'm connected via ethernet, wifi or opens a GPRS connection, but I can't find any API to return the connection type.

Any Ideas





Re: Smart Devices General Wired or GPRS

AlexFeinman

I think Stephen refers to ConnMgrQueryDetailedStatus




Re: Smart Devices General Wired or GPRS

Stephen Hauck

Yes, thanks Alex, I figured looking up one would lead to the other.





Re: Smart Devices General Wired or GPRS

Martin

Thanks everyone, that would work great but I forgot to mention, the project (ie. the hardware) is WM 2003 not v5 and that particular api doesn't exist.

Any other ideas

Thanks again





Re: Smart Devices General Wired or GPRS

Stephen Hauck

The connectionmanager is in PPC 2003 SDK

To get info use ConnMgrEnumDestinations

It's ugly but it works.

Enjoy.