public class Communicator
extends java.lang.Object
Constructor and Description |
---|
Communicator() |
Modifier and Type | Method and Description |
---|---|
static void |
send(java.lang.Object o,
java.lang.String host,
int port)
Just send the object.
|
static java.lang.Object |
sendAndRecieve(java.lang.Object o,
java.lang.String host,
int port)
Send an object and recieve one back.
|
public static java.lang.Object sendAndRecieve(java.lang.Object o, java.lang.String host, int port)
o
- the object to be senthost
- the hostport
- the portpublic static void send(java.lang.Object o, java.lang.String host, int port)
o
- the objecthost
- the hostport
- the port