Package com.bradyrussell.uiscoin.netty
Class NodeP2PPeerEncoder
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelOutboundHandlerAdapter
io.netty.handler.codec.MessageToByteEncoder<PeerAddress>
com.bradyrussell.uiscoin.netty.NodeP2PPeerEncoder
- All Implemented Interfaces:
 io.netty.channel.ChannelHandler,io.netty.channel.ChannelOutboundHandler
public class NodeP2PPeerEncoder extends io.netty.handler.codec.MessageToByteEncoder<PeerAddress>
- 
Nested Class Summary
 - 
Constructor Summary
Constructors Constructor Description NodeP2PPeerEncoder() - 
Method Summary
Modifier and Type Method Description protected voidencode(io.netty.channel.ChannelHandlerContext ctx, PeerAddress msg, io.netty.buffer.ByteBuf out)Methods inherited from class io.netty.handler.codec.MessageToByteEncoder
acceptOutboundMessage, allocateBuffer, isPreferDirect, writeMethods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, readMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable 
- 
Constructor Details
- 
NodeP2PPeerEncoder
public NodeP2PPeerEncoder() 
 - 
 - 
Method Details
- 
encode
protected void encode(io.netty.channel.ChannelHandlerContext ctx, PeerAddress msg, io.netty.buffer.ByteBuf out) throws java.lang.Exception- Specified by:
 encodein classio.netty.handler.codec.MessageToByteEncoder<PeerAddress>- Throws:
 java.lang.Exception
 
 -