Netty -- Discard Server

  1. ChannelHandlerAdapter
    provides various event handler methods that you can override. For now, it is just enough to extend ChannelHandlerAdapter rather than to implement the handler interface by yourself.
  2. ByteBuf
    ByteBuf is a reference-counted object which has to be released explicitly via the release() method. Please keep in mind that it is the handler’s responsibility to release any reference-counted object passed to the handler.
  3. NioEventLoopGroup
    A multithreaded event loop that handles I/O operation. How many Threads are used and how they are mapped to the created Channels depends on the EventLoopGroup implementation and may be even configurable via a constructor.
  4. ServerBootStrap
    A helper class that sets up a server.
  5. NioServerSocketChannel
    Instantiate a new Channel to accept incoming connections.
  6. ChannelInitializer
    A special handler that is purposed to help a user configure a new Channel. It is most likely that you want to configure the ChannelPipeline of the new Channel by adding some handlers such as DiscardServerHandler to implement your network application.
  7. Dealing with a Stream-based Transport
    In a stream-based transport such as TCP/IP, received data is stored into a socket receive buffer. Unfortunately, the buffer of a stream-based transport is not a queue of packets but a queue of bytes.
  8. ChannelInboundHandlerAdapter
  9. ByteToMessageDecoder
  10. ChannelOutboundHandlerAdapter
  11. MessageToByteEncoder
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值