Home > Archive > Smartphone Developer Forum > January 2005 > Web Services Connection
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Web Services Connection
|
|
| MEGASILVER 2005-01-24, 4:02 pm |
| Hi guys, one quick question. I am designing an application that is either
synchronised to a computer either via bluetooth or cable.
Right now, the smartphone when synchronised, will use the computer's
Internet connection to consume web services. My question is, is there any way
to check if there is no internet connection available? When I try to catch an
exception when the Web Services is called without any connection available,
it seems to consume too much resources.
So in other words, if there is no synchronisation I will not call upon the
web services. If there a way to detect if cuurently the smartphone is
synchronised or not? I am using C#.
Thanks!!!
Wes
| |
|
| MEGASILVER wrote:
> Hi guys, one quick question. I am designing an application that is either
> synchronised to a computer either via bluetooth or cable.
>
> Right now, the smartphone when synchronised, will use the computer's
> Internet connection to consume web services. My question is, is there any way
> to check if there is no internet connection available? When I try to catch an
> exception when the Web Services is called without any connection available,
> it seems to consume too much resources.
>
> So in other words, if there is no synchronisation I will not call upon the
> web services. If there a way to detect if cuurently the smartphone is
> synchronised or not? I am using C#.
yes, it's been a while, but ... i tried to do a DNS lookup on the web
server, if that failed->no connection. I also had the IP of the server,
so i would try and ping it too. if that failed->no connection.
riki
main(){printf("%d != %d, why?", sizeof('"')["'"],
,(sizeof('"'))["]\"\0["]);}
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
|
|
|
|
|