public class NettyRemoteConnection extends RemoteConnection
Modifier and Type | Class and Description |
---|---|
private static class |
NettyRemoteConnection.MyChannelFutureListener |
Modifier and Type | Field and Description |
---|---|
private NettyHandler |
handler |
private NettyRemoteConnection.MyChannelFutureListener |
writeListener |
Constructor and Description |
---|
NettyRemoteConnection(NettyTransportProvider provider,
NettyHandler netHandler) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect() |
void |
write(SerialMsg msg) |
getHost, onConnect, onDisconnect, onException, onMessage, setHost
private final NettyHandler handler
private final NettyRemoteConnection.MyChannelFutureListener writeListener
public NettyRemoteConnection(NettyTransportProvider provider, NettyHandler netHandler)
public void write(SerialMsg msg)
write
in class RemoteConnection
public void disconnect()
disconnect
in class RemoteConnection