
MINA
文章平均质量分 55
iteye_17023
这个作者很懒,什么都没留下…
展开
-
MINA客户端和服务端
IoService(Inf) | |==AbstractIoService --IoAcceptor -----IoConnector | | | ...原创 2008-09-17 16:24:48 · 185 阅读 · 0 评论 -
MINA使用FAQ
1、如何设置Session的一些SocketOption参数? // set idle time to 60 seconds session.getConfig().setIdleTime(IdleStatus.BOTH_IDLE, 60);而且这些设置往往在SessionOpened时候设置:public void sessionOpened(IoSession...原创 2008-09-17 23:34:28 · 102 阅读 · 0 评论 -
IoFuture 源码阅读
阅读前请参考:(1)http://eyesmore.iteye.com/blog/243648 写道Future模式入门 MINA2.0中关于Future模式的应用体系: IoFuture(Future异步调用的需求) | |==DefaultIoFuture(把Future模式给实现了,针对IoSession的不同操作有不同的Future,例如Conne...原创 2008-09-19 12:00:23 · 120 阅读 · 0 评论 -
基于MINA的客户端(Template-Callback模式)
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * ...原创 2009-07-08 10:25:40 · 154 阅读 · 0 评论 -
CumulativeProtocolDecoder 流与事件模型
ByteBuffer 的 flip 方法,许多人都知道是写操作后,即将要开始读操作,需要flip一把。但是,compact方法,知道的人似乎比较少,它用在什么场景呢?本文就是回答这个问题的。 import java.nio.ByteBuffer;public class T { public static void main(String[] args) {...原创 2011-08-01 18:31:06 · 253 阅读 · 0 评论