|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectks.common.network.SimpleClientConnection
Base class to manage the client-side of a Socket connection.
| Constructor Summary | |
SimpleClientConnection(java.lang.String theHost,
int thePort)
Prepare connection on given host and port. |
|
| Method Summary | |
void |
disconnect()
Terminate the connection to the server. |
CommunicationAgent |
getAgent()
Return agent responsible for communication to server. |
boolean |
isConnected()
Determines if server is open for communication? |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleClientConnection(java.lang.String theHost,
int thePort)
throws java.io.IOException
theHost - host to which connection is requested.thePort - Socket port number to which to connect.
java.io.IOException - Any failure is reported as an exception.| Method Detail |
public void disconnect()
public boolean isConnected()
public CommunicationAgent getAgent()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||