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.IOExceptionpublic boolean receiveObject(T dest) throws java.io.IOException
java.io.IOExceptionpublic boolean openServer(int port)
throws java.io.IOException
openServer in interface IConnectablejava.io.IOExceptionpublic boolean waitConnection()
throws java.io.IOException
waitConnection in interface IConnectablejava.io.IOExceptionpublic boolean waitConnection(int time)
throws java.io.IOException
waitConnection in interface IConnectablejava.io.IOExceptionpublic boolean closeClient()
throws java.io.IOException
closeClient in interface IConnectablejava.io.IOExceptionpublic boolean connect(java.lang.String host,
int port)
throws java.io.IOException
connect in interface IConnectablejava.io.IOExceptionpublic boolean close()
throws java.io.IOException
close in interface IConnectablejava.io.IOException