|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgecco.communication.client.ServerConnection
This class keeps track of the connection to the server
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 Parameter
Exception - Description of Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||