读书人

netty源码分析总结

发布时间: 2012-10-20 14:12:47 作者: rapoo

netty源码分析小结

先看下netty的channel对象关联关系。channel是由channelfactory来创建的,channelfactory又分为client和server两种。
channelfuture负责channel的所处状态,一个channle中关联来channelpipeline,channelpipeline则由pipelinefactory创建,
在channelpipeline中有内部类channelhandlercontext,保存channelhandler的链式结构,由channelhandler来传递channelevent,
channelevent分别有open,bind,connected,close,messagereceived等。
netty源码分析总结

读书人网 >编程

热点推荐