diff --git a/net/src/processing/net/Client.java b/net/src/processing/net/Client.java index 7bd643b9c..46df30708 100644 --- a/net/src/processing/net/Client.java +++ b/net/src/processing/net/Client.java @@ -43,11 +43,8 @@ public class Client implements Runnable { int port; String host; - - // read buffer and streams - - InputStream input; - OutputStream output; + public InputStream input; + public OutputStream output; byte buffer[] = new byte[32768]; int bufferIndex; diff --git a/net/src/processing/net/Server.java b/net/src/processing/net/Server.java index 0102e2f58..5257bcd10 100644 --- a/net/src/processing/net/Server.java +++ b/net/src/processing/net/Server.java @@ -39,9 +39,11 @@ public class Server implements Runnable { Thread thread; ServerSocket server; int port; - //Vector clients; // people payin the bills - Client[] clients; - int clientCount; + + /** Number of clients currently connected. */ + public int clientCount; + /** Array of client objects, useful length is determined by clientCount. */ + public Client[] clients; public Server(PApplet parent, int port) {