From b57dcb495962c5bf219914fcc7628fe583ea0569 Mon Sep 17 00:00:00 2001 From: benfry Date: Sat, 20 Oct 2007 20:37:33 +0000 Subject: [PATCH] make some fields public --- net/src/processing/net/Client.java | 7 ++----- net/src/processing/net/Server.java | 8 +++++--- 2 files changed, 7 insertions(+), 8 deletions(-) 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) {