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, setHost
private 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 RemoteConnection
public void disconnect()
disconnect
in class RemoteConnection
public void onConnect()
onConnect
in class RemoteConnection