How to determine if a processing application host has access to the internet?
in
Programming Questions
•
2 years ago
I'm building a feed reader that's supposed to be run for long periods of time collecting feed data. I've noticed that if I lose internet connectivity the application freezes. Is there a way to tell if an application is 'online'? The processing online() function apparently only works for applets running in a browser window. I figure there are probably quite a few different methods for determining whether an application has access to the internet. Before delving into the specifics of which line of code is causing the problem and working out a try ... catch routine, I was wondering if there are other methods ... or even an explicit try ... catch function I could run to check before the code attempts to connect and d/l more feed data.
2