|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gecco.communication.server.ClientConnectionHandler
A class that keep track of all the parts needed for a connection to a client
| Field Summary | |
private ClientConnection |
connection
Description of the Field |
private DataInputExchangeHandler |
DEHInput
Description of the Field |
private DataOutputExchangeHandler |
DEHOutput
Description of the Field |
private Thread |
inputThread
Description of the Field |
private Thread |
outputThread
Description of the Field |
private RoleConnection |
roleconnection
Description of the Field |
| Constructor Summary | |
ClientConnectionHandler(ClientConnection connection,
Server server,
RoleConnection roleconnection)
Constructor for the ClientConnectionHandler object |
|
| Method Summary | |
void |
connectionLost(String role,
int id)
Description of the Method |
ClientConnection |
getClientConnection()
Gets the ClientConnection attribute of the ClientConnectionHandler object |
void |
sendMessage(ServerMessage m)
called by RoleConnection, to send a message to the client represented by this ClientConnectionHandler |
void |
startThreads()
Description of the Method |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ClientConnection connection
private RoleConnection roleconnection
private DataOutputExchangeHandler DEHOutput
private DataInputExchangeHandler DEHInput
private Thread outputThread
private Thread inputThread
| Constructor Detail |
public ClientConnectionHandler(ClientConnection connection,
Server server,
RoleConnection roleconnection)
connection - Description of Parameterserver - Description of Parameterroleconnection - Description of Parameter| Method Detail |
public ClientConnection getClientConnection()
public void startThreads()
public void sendMessage(ServerMessage m)
m - Description of Parameter
public void connectionLost(String role,
int id)
role - Description of Parameterid - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||