|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
Field Summary | |
private DataInputStream |
data_in
Description of the Field |
private DataOutputStream |
data_out
Description of the Field |
private int |
id
Description of the Field |
private BufferedInputStream |
in
Description of the Field |
private BufferedOutputStream |
out
Description of the Field |
private String |
role
Description of the Field |
private Socket |
s
Description of the Field |
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 |
|
Field Detail |
private Socket s
private BufferedOutputStream out
private BufferedInputStream in
private DataInputStream data_in
private DataOutputStream data_out
private int id
private String role
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 idIOException
- Description of ExceptionMethod Detail |
public int getId()
public String getRole()
public DataOutputStream getDataOutputStream()
public DataInputStream getDataInputStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |