|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.communication.server.ClientConnection
A class that keeps track of the 'physical' connection to a client
Constructor Summary | |
ClientConnection(Socket sock,
String r,
int n1)
|
Method Summary | |
DataInputStream |
getDataInputStream()
Gets the DataInputStream attribute of the ClientConnection object |
DataOutputStream |
getDataOutputStream()
Gets the DataOutputStream attribute of the ClientConnection object |
int |
getId()
Gets the Id attribute of the ClientConnection object |
String |
getRole()
Gets the Role attribute of the ClientConnection object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientConnection(Socket sock, String r, int n1) throws IOException
sock
- The client's socketr
- The client's rolen1
- the client's unique id
IOException
- Description of ExceptionMethod Detail |
public int getId()
public String getRole()
public DataOutputStream getDataOutputStream()
public DataInputStream getDataInputStream()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |