us.ihmc.utilities.remote
Class RemoteConnection
java.lang.Object
us.ihmc.utilities.remote.RemoteConnection
- Direct Known Subclasses:
- ReflectiveTCPServerTestClient
public class RemoteConnection
- extends java.lang.Object
Method Summary |
void |
close()
Closes any open connections. |
void |
connect()
|
void |
connect(java.lang.String host)
|
void |
connect(java.lang.String host,
int port)
Tries to connect to the specified host on the specified port and open an object output stream to it. |
void |
connectAsync(java.lang.String host)
|
boolean |
isConnected()
|
void |
SendObject(RemoteRequest remoteRequest)
Sends the specified Serializable object across the ObjectOutputStream. |
java.lang.Object |
SendRequest(RemoteRequest remoteRequest)
|
void |
SendString(java.lang.String string)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteConnection
public RemoteConnection()
isConnected
public boolean isConnected()
connect
public void connect()
throws java.lang.Exception
- Throws:
java.lang.Exception
connect
public void connect(java.lang.String host)
throws java.lang.Exception
- Throws:
java.lang.Exception
connectAsync
public void connectAsync(java.lang.String host)
throws java.lang.Exception
- Throws:
java.lang.Exception
connect
public void connect(java.lang.String host,
int port)
throws java.lang.Exception
- Tries to connect to the specified host on the specified port and open an object output stream to it.
- Parameters:
host
- port
-
- Throws:
java.lang.Exception
close
public void close()
- Closes any open connections.
SendString
public void SendString(java.lang.String string)
throws java.lang.Exception
- Throws:
java.lang.Exception
SendObject
public void SendObject(RemoteRequest remoteRequest)
throws java.lang.Exception
- Sends the specified Serializable object across the ObjectOutputStream.
- Parameters:
remoteRequest
-
- Throws:
java.lang.Exception
SendRequest
public java.lang.Object SendRequest(RemoteRequest remoteRequest)
throws java.lang.Exception
- Throws:
java.lang.Exception