Re: [MonoTouch] Web-services vs other + BTFON

2011-11-08 Thread Nic Wise
In London Bike App (source: https://github.com/nicwise/londonbikeapp )
I check reachability to see if the network is up, and then check a
site to see if I can connect. eg:

if (Util.IsReachable(www.fastchicken.co.nz))
{
var wc = new 
WebClient();
string s =
wc.DownloadString(string.Format(http://www.fastchicken.co.nz?distance={0}time={1};,
 distance, time));
Util.Log(trip:  + s);
}

public static bool IsReachable (string host)
{
return Reachability.InternetConnectionStatus () !=
NetworkStatus.NotReachable 
Reachability.IsHostReachable (host);

}

appears to work. However, I'd suggest you also forget the BTFON
network, so it doesn't auto-connect. It's an open wifi, so things like
FireSheep can pull your traffic easily.



On Mon, Nov 7, 2011 at 13:40, David Black david.bl...@casewise.com wrote:
 Hi there

 If you are trying to attach to a web service and you own that service why not 
 add a ping method to the service? That way you test reachability, if that 
 succeeds call your ping method and verify the successful call.

 You should keep in mind that users pay for data and only handshake a small 
 amount of data and do it infrequently.

 D




 -Original Message-
 From: monotouch-boun...@lists.ximian.com 
 [mailto:monotouch-boun...@lists.ximian.com] On Behalf Of simarx
 Sent: 07 November 2011 13:11
 To: monotouch@lists.ximian.com
 Subject: Re: [MonoTouch] Web-services vs other + BTFON

 Another Question ...

 When using the Reachability classes to determine an internet connection, the
 phone sometimes connects to the BTFON Wifi connection and therefore claims
 that a valid connection exists.

 BTFON is the open-wifi thing that you have to sign up to use so it allows a
 connection but not to your destination unless you've signed up to their
 service.

 Is there any way to determine what the NetworkReachability classes have
 connected to verify it's responded to by the real destination?

 --
 View this message in context: 
 http://monotouch.2284126.n4.nabble.com/Web-services-vs-other-tp3997150p3998564.html
 Sent from the MonoTouch mailing list archive at Nabble.com.
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch
 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch




-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Web-services vs other + BTFON

2011-11-07 Thread David Black
Hi there

If you are trying to attach to a web service and you own that service why not 
add a ping method to the service? That way you test reachability, if that 
succeeds call your ping method and verify the successful call.

You should keep in mind that users pay for data and only handshake a small 
amount of data and do it infrequently.

D

 


-Original Message-
From: monotouch-boun...@lists.ximian.com 
[mailto:monotouch-boun...@lists.ximian.com] On Behalf Of simarx
Sent: 07 November 2011 13:11
To: monotouch@lists.ximian.com
Subject: Re: [MonoTouch] Web-services vs other + BTFON

Another Question ...

When using the Reachability classes to determine an internet connection, the
phone sometimes connects to the BTFON Wifi connection and therefore claims
that a valid connection exists.

BTFON is the open-wifi thing that you have to sign up to use so it allows a
connection but not to your destination unless you've signed up to their
service.

Is there any way to determine what the NetworkReachability classes have
connected to verify it's responded to by the real destination?

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Web-services-vs-other-tp3997150p3998564.html
Sent from the MonoTouch mailing list archive at Nabble.com.
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch
___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch