public boolean ok() { // Use this to test whether a client is stil // valid for use. return !socket.isClosed() && socket.isConnected() && socket.isBound(); }