Network Connection with GPRS

A

anthony

hello,

I would want to know if it is possible to select the network connection
programmatically....
I am on pocket pc and work with C#. I do not have to use OpenNetCF :(

My application works with Wifi, GPRS, Blutooth, etc... but I want to
know if I could select one with compact framework and not the the
automatic default connection when I sent an webrequest.

The connection to use is in a config file, and I would connect with this
one (GPRS in my case).

Thanks !
anthony
 
P

Paul G. Tobey [eMVP]

Well, any time you assign a socket to a local IP address, you are telling
the TCP/IP stack where to send the packet. For example, if you have WiFi,
wired Ethernet, and GPRS connected and active on your device, each must have
an assigned IP address, either given by the carrier (GPRS), assigned
statically to the device by the user or assigned via the local network
infrastructure (DHCP). If you create a socket and bind it to the IP address
assigned to, say, the WiFi adapter, that adapter will be used to send the
traffic you send over that socket.

So, back to the original question, you need to find a means to define the
originating IP address for the WebService interaction. I'm sorry, but I
don't do enough WebService stuff to help with that.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top