|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--server.FishTankServerClientManager
Thread that manages a connection to the server. This will allow multiple people to be connected to the server at one time.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
FishTankServerClientManager(java.net.Socket clientSocket,
java.lang.ThreadGroup g,
ServerInfo my,
java.util.Vector f,
ServerStatPanel m,
PulseServer pul)
constructor for FishTankClientManager. |
|
| Method Summary | |
void |
close()
close this connection and kill this thread |
void |
getFish()
send the vector of fish to the client |
void |
getStat()
send the statistics panel to the client |
void |
run()
this is what is run when someone connects. |
void |
sendFish()
this is called when accepting a fish from a server or a client |
void |
sendLocal()
send the location of all the fish to all of the clients |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FishTankServerClientManager(java.net.Socket clientSocket,
java.lang.ThreadGroup g,
ServerInfo my,
java.util.Vector f,
ServerStatPanel m,
PulseServer pul)
clientSocket - the socket that the connection is coming fromg - the ThreadGroup that manages all of the connectionsmy - the ServerInfo of the server that is runningf - the vector of fish that are on the serverm - the Panel that shows the servers statisticspul - the PulserServer| Method Detail |
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void close()
public void sendFish()
public void sendLocal()
public void getStat()
public void getFish()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||