public class RSocket<T extends ISerializable> extends java.lang.Object implements IConnectable
Constructor and Description |
---|
RSocket() |
Modifier and Type | Method and Description |
---|---|
boolean |
close() |
boolean |
closeClient() |
boolean |
connect(java.lang.String host,
int port) |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isServer() |
boolean |
openServer(int port) |
boolean |
receiveObject(T dest) |
boolean |
sendObject(T object) |
boolean |
waitConnection() |
boolean |
waitConnection(int time) |
public boolean isConnected()
public boolean isClosed()
public boolean isServer()
public boolean sendObject(T object) throws java.io.IOException
java.io.IOException
public boolean receiveObject(T dest) throws java.io.IOException
java.io.IOException
public boolean openServer(int port) throws java.io.IOException
openServer
in interface IConnectable
java.io.IOException
public boolean waitConnection() throws java.io.IOException
waitConnection
in interface IConnectable
java.io.IOException
public boolean waitConnection(int time) throws java.io.IOException
waitConnection
in interface IConnectable
java.io.IOException
public boolean closeClient() throws java.io.IOException
closeClient
in interface IConnectable
java.io.IOException
public boolean connect(java.lang.String host, int port) throws java.io.IOException
connect
in interface IConnectable
java.io.IOException
public boolean close() throws java.io.IOException
close
in interface IConnectable
java.io.IOException