The main building blocks Netty

1、Channel  

2, the callback

3、Future

4, event and ChannelHandler

 

1, Channel is considered incoming or outgoing data carrier, which can be opened or closed;

2, the callback: a reference to another method that has been supplied to the process;

3, Future: providing another notification application when completion of the operation mode;

4, event and ChannelHandler: use different events to notify the state or change the operation of our state;

 

EventLoopGroup: react thread pool; ( part of the routine use of a EventLoopGroup, part of the routine creates two EventLoopGroup, so what are the benefits and the difference? )

eventloop and eventloopgroup: the relationship between threads and thread groups;

channelpipeline:

 

ChannelInboundHandlerAdapter;

ChannelHandlerAdapter;

ChannelOutboundHandlerAdapter ;

 

processSelectedKey:

Reference learn the following:

Netty TCP server server-based proactive solutions to client Message

https://blog.csdn.net/yaobo2816/article/details/49073557

https://www.cnblogs.com/wuxun1997/p/11655537.html

 

https://blog.csdn.net/StayHungry2016/article/details/89081216?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

 

https://blog.csdn.net/a770794164/article/details/95594048

 

https://blog.csdn.net/a770794164/article/details/95642827?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

Published 125 original articles · won praise 9 · views 30000 +

Guess you like

Origin blog.csdn.net/jiezhang656/article/details/104555583