transmit data using a particular data connection

S

sachin

hello everyone,
i have a application which would run in the background and send some
data that is been captured on the device to the server .
my problem is, under some condition the app has to transmit data only
using WI-FI connection and under some other condition it has to
transmit only using the data connection available on the phone through
GPRS/EDGE/3G .
how do i instruct the application to use a only a particular
connection to send data to the server.
please advise.

Thanks
sachin
 
P

Paul G. Tobey [eMVP]

You haven't told us much about what code is sending the data, so I'll assume
that you're using a Socket. Bind the socket to the IP address of the network
adapter that you want to use to send the data and then send, as before.

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