make some fields public

This commit is contained in:
benfry
2007-10-20 20:37:33 +00:00
parent 8ac11b10f7
commit b57dcb4959
2 changed files with 7 additions and 8 deletions
+2 -5
View File
@@ -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;
+5 -3
View File
@@ -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) {