A client connects to a server and sends data back and forth. If anything goes wrong with the connection, for example the host is not there or is listening on a different port, an exception is thrown. Copyimport processing.net.*; Client myClient; int dataIn; void setup() { size(200, 200); // Connect to the local machine at port 5204. // This example will not run if you haven't // previously started