| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprocessing.net.Server
public class Server
| Field Summary | |
|---|---|
 int | 
clientCount
Number of clients currently connected.  | 
 Client[] | 
clients
Array of client objects, useful length is determined by clientCount.  | 
| Constructor Summary | |
|---|---|
Server(PApplet parent,
       int port)
 | 
|
| Method Summary | |
|---|---|
 Client | 
available()
Returns the next client in line that has something to say.  | 
 void | 
disconnect(Client client)
Disconnect a particular client.  | 
 void | 
dispose()
Disconnect all clients and stop the server: internal use only.  | 
 void | 
run()
 | 
 void | 
stop()
Disconnect all clients and stop the server.  | 
 void | 
write(byte[] what)
Write a byte array to all the connected clients.  | 
 void | 
write(int what)
Write a value to all the connected clients.  | 
 void | 
write(java.lang.String what)
Write a String to all the connected clients.  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public int clientCount
public Client[] clients
| Constructor Detail | 
|---|
public Server(PApplet parent,
              int port)
| Method Detail | 
|---|
public void disconnect(Client client)
public Client available()
public void stop()
public void dispose()
public void run()
run in interface java.lang.Runnablepublic void write(int what)
public void write(byte[] what)
public void write(java.lang.String what)
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||