public class BusConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
HANDSHAKE |
Constructor and Description |
---|
BusConnection(java.net.InetAddress addr,
int port) |
BusConnection(java.net.InetAddress addr,
int port,
boolean isServer) |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
protected void |
connect()
Perform simple handshake as specified in RSB socket protocol.
|
void |
deactivate()
Safely close I/O streams and sockets.
|
protected int |
readLength()
Extract length of next notification blob.
|
protected Notification |
readNotification()
Read a single Socket transport packet (length + notification)
and decode it into an RSB notification object.
|
protected static final int HANDSHAKE
public BusConnection(java.net.InetAddress addr, int port, boolean isServer)
public BusConnection(java.net.InetAddress addr, int port)
public void activate() throws java.io.IOException, RSBException
java.io.IOException
RSBException
public void deactivate()
RSBException
protected void connect() throws RSBException
RSBException
protected int readLength() throws java.io.IOException
java.io.IOException
protected Notification readNotification() throws java.io.IOException
java.io.IOException