iosession专题

Apache mina: IoSession.write(Object msg)剖析

在apache mina中通过IoSession 写入数据,返回一个Future可以获取写入数据的结果。 NioSocketSession(AbstractIoSession).write(Object)   NioSocketSession(AbstractIoSession).write(Object, SocketAddress) .IoSession通过FilterChai

Apache Mina 源码再读4 IoSession.write()源码剖析

在IoSession 中提供两个接口供写入数据。 Writes the specified message to remote peer. This operation is asynchronous; IoHandler.messageSent(IoSession,Object) will be invoked when the message is actually sent to r

Apache Mina 源码再读2 IoSession创建过程源代码剖析

在调用bind()函数后,AcceptorOperationFuture 被注册到AbstractPollingIoAcceptor 类中的registerQueue 队列。在AbstractPollingIoAcceptor中存在IoProcessor 类。 /**  * An internal interface to represent an 'I/O processor