Dec. 14, 2015
6:20 a.m.
Hi Dimitris,
On 14 Dec 2015, at 07:02, Dimitris Chloupis <kilon.alios@gmail.com> wrote:
Hey guys I try to make a way to detect whether my project is up to date and if not to update it from the github repo automagically. This part works fine , but I will also like to first detect whether the computer has an internet connection so to avoid unnecessary errors and checks .
Is that possible ?
Just try accessing a well know, always available host with a short timeout ? [ ZnClient new beOneShot; timeout: 2; get: 'http://www.google.com'; isSuccess ] on: Error do: [ false ] HTH, Sven https://medium.com/concerning-pharo/pharo-days-2016-c52fe4d7caf