public abstract class RemoteConnection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RemoteHost |
host |
private LocalHost |
localHost |
Modifier | Constructor and Description |
---|---|
protected |
RemoteConnection(LocalHost provider) |
Modifier and Type | Method and Description |
---|---|
abstract void |
disconnect() |
RemoteHost |
getHost() |
void |
onConnect() |
void |
onDisconnect() |
void |
onException(java.lang.Throwable cause) |
void |
onMessage(SerialMsg msg) |
void |
setHost(RemoteHost host) |
abstract void |
write(SerialMsg msg) |
private final LocalHost localHost
private RemoteHost host
protected RemoteConnection(LocalHost provider)
public void onMessage(SerialMsg msg)
public void onException(java.lang.Throwable cause)
public void onConnect()
public void onDisconnect()
public abstract void write(SerialMsg msg)
public RemoteHost getHost()
public void setHost(RemoteHost host)
public abstract void disconnect()