We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › processing.net.*  -> Client Exception
Page Index Toggle Pages: 1
processing.net.*  -> Client Exception (Read 458 times)
processing.net.*  -> Client Exception
Dec 5th, 2007, 7:55pm
 
Hi,

how can i prevent to get an error when I try to connect to a IP adress that doesn't exists?

When I type

Client c = new Client(this, "128.0.0.1", 21);

I get a Exception, how can I prevent this? My try/catch block doesn't work.

I want to check if the connect was successful.

Thanks
Re: processing.net.*  -> Client Exception
Reply #1 - Dec 5th, 2007, 8:26pm
 
Unfortuantely, from a quick look in the processing.net source, the Client class quits on an exception.

The only way to solve this would be to build a custom version, or file a bug and hope there's a clean way to sole the issue.

Page Index Toggle Pages: 1