public class NettyRemoteConnection extends RemoteConnection
| Modifier and Type | Field and Description |
|---|---|
private io.netty.channel.Channel |
channel |
private ConnectListener |
connectListener |
| Constructor and Description |
|---|
NettyRemoteConnection(LocalHost provider,
io.netty.channel.Channel channel,
ConnectListener connectListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect() |
void |
onConnect() |
void |
write(SerialMsg msg) |
getHost, getLocalHost, onDisconnect, onException, setHostprivate final io.netty.channel.Channel channel
private final ConnectListener connectListener
public NettyRemoteConnection(LocalHost provider, io.netty.channel.Channel channel, ConnectListener connectListener)
public void write(SerialMsg msg)
write in class RemoteConnectionpublic void disconnect()
disconnect in class RemoteConnectionpublic void onConnect()
onConnect in class RemoteConnection