实现IoService的连接器,此类本是IoServer框架的一个扩展,用于管理客户端连接所产生的IoSession,
IoConnector本身是基于nio选择器的一个解决类,所有通过IoConnector所产生的IoSession都是会注
册到Selector中,和IoServerImpl一样,我们为每个CPU建立一个Selector选择器,并为每个选择器
提供一个可运行的处理线程,但这里由于IoConnector有时会用于客户端的创建,所以允需开发人员设
置可运行的读写处理线程个数(也就是选择器的个数)
Please refer to NetCat example.
You should connect to the desired socket address to start communication, and then events for incoming connections will be sent to the specified default {@link IoHandler}.
Threads connect to endpoint start automatically when {@link #connect(SocketAddress,IoHandler)} is invoked, and stop when allconnection attempts are finished. @author The Apache Directory Project (mina-dev@directory.apache.org) @version $Rev: 555855 $, $Date: 2007-07-13 12:19:00 +0900 (Fri, 13 Jul 2007) $
Please refer to NetCat example.
You should connect to the desired socket address to start communication, and then events for incoming connections will be sent to the specified default {@link IoHandler}.
Threads connect to endpoint start automatically when {@link #connect(SocketAddress)} is invoked, and stop when allconnection attempts are finished. @author The Apache MINA Project (dev@mina.apache.org) @version $Rev: 671827 $, $Date: 2008-06-26 10:49:48 +0200 (Thu, 26 Jun 2008) $
Please refer to NetCat example.
You should connect to the desired socket address to start communication, and then events for incoming connections will be sent to the specified default {@link IoHandler}.
Threads connect to endpoint start automatically when {@link #connect(SocketAddress,IoHandler)} is invoked, and stop when allconnection attempts are finished. @author The Apache Directory Project (dev@directory.apache.org) @version $Rev: 357871 $, $Date: 2005-12-20 10:56:40 +0900 (Tue, 20 Dec 2005) $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|