|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.apelon.apelonserver.client.ServerConnection
com.apelon.apelonserver.client.ServerConnectionSocket
public class ServerConnectionSocket
A ServerConnectionSocket establishes a connection to a running socket based server. The remote socket server must be started independently.
Use the following code to establish a connection:
ServerConnection sc = new ServerConnectionSocket(host, port);
Field Summary | |
---|---|
protected static long |
rtt
|
Constructor Summary | |
---|---|
ServerConnectionSocket(String host,
int port)
Establish a socket connection to a remote server. |
Method Summary | |
---|---|
void |
close()
Close the socket connection. |
protected String |
executeQueryRemote(String query)
|
String |
toString()
Put this method in so that we can call toString on the server connection and retrieve a nice string to place into a status area about the host and port. |
Methods inherited from class com.apelon.apelonserver.client.ServerConnection |
---|
ping, setQueryServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static long rtt
Constructor Detail |
---|
public ServerConnectionSocket(String host, int port) throws ApelonException
host
- the name of the hostport
- integer port number
ApelonException
- errorMethod Detail |
---|
protected String executeQueryRemote(String query) throws ApelonException
executeQueryRemote
in class ServerConnection
ApelonException
public void close() throws Exception
close
in class ServerConnection
Exception
- if there is an error during close of socketpublic String toString()
Creation date: (5/18/2000 3:11:50 PM)
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |