|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.communication.client.ServerConnection
This class keeps track of the connection to the server
Field Summary | |
private DataInputStream |
data_in
Description of the Field |
private DataOutputStream |
data_out
Description of the Field |
private BufferedInputStream |
in
Description of the Field |
private BufferedReader |
inString
Description of the Field |
private BufferedOutputStream |
out
Description of the Field |
private Socket |
s
Description of the Field |
Constructor Summary | |
ServerConnection()
Constructor for the ServerConnection object |
Method Summary | |
void |
connectToServer(String hostname,
int port)
Tries to connect to a server |
DataInputStream |
getDataInputStream()
Gets the DataInputStream attribute of the ServerConnection object |
DataOutputStream |
getDataOutputStream()
Gets the DataOutputStream attribute of the ServerConnection object |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Socket s
private BufferedOutputStream out
private BufferedInputStream in
private BufferedReader inString
private DataInputStream data_in
private DataOutputStream data_out
Constructor Detail |
public ServerConnection()
Method Detail |
public DataOutputStream getDataOutputStream()
public DataInputStream getDataInputStream()
public void connectToServer(String hostname, int port) throws Exception
port
- the port to connect tohostname
- Description of ParameterException
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |