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 & HelpPrograms › Class Client module Network
Page Index Toggle Pages: 1
Class Client module Network (Read 501 times)
Class Client module Network
Jan 30th, 2008, 10:23am
 
I've noticed two features that are not present in the class Client. As I'm a beginner with Processing, I would like to now if it's however possible to perform these tasks.

1. How is it possible to know if a server is present when creating the Client ? How to catch the Java Exception ?

2. When I'm closing the client, it disconnects properly inside the PDE but not if the code is generated in an autonomous application.

Thank you for your help
Re: Class Client module Network
Reply #1 - Mar 27th, 2008, 7:18am
 
I don't know about the other questions, but for exceptions go here http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html

Essentially, you enclose the code that might generate an exception between "try-catch". The "catch" part executes code if the specified type of exception is caught.


Page Index Toggle Pages: 1