1) You might want to use a thread.
3) As said, if there is a problem, the client is null.
Processing generally doesn't let exceptions to be exposed, so try / catch is useless most of the time (new APIs in the 2.0 can expose them for "advanced usage").
So, for 2) and more, indeed, you might need to use java.net.Socket directly.
3) As said, if there is a problem, the client is null.
Processing generally doesn't let exceptions to be exposed, so try / catch is useless most of the time (new APIs in the 2.0 can expose them for "advanced usage").
So, for 2) and more, indeed, you might need to use java.net.Socket directly.