|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eriksilkensen.net.Server.ClientHandler
public class Server.ClientHandler
Inner Class to handle the Clients. This involves connecting them to the Server, and knowing when to send out the messages to everyone listening.
| Field Summary | |
|---|---|
protected java.io.BufferedReader |
reader
|
protected java.net.Socket |
sock
|
| Constructor Summary | |
|---|---|
Server.ClientHandler(java.net.Socket clientSocket)
Constructor for the Client Handler that sets everything up for the specified client Socket. |
|
| Method Summary | |
|---|---|
void |
run()
Runs when the Client Handler is registered as a job for a Thread, and the Thread is started. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.BufferedReader reader
protected java.net.Socket sock
| Constructor Detail |
|---|
public Server.ClientHandler(java.net.Socket clientSocket)
clientSocket - the Client| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||