_config = config;
if (_useNIO)
{
_acceptor = new org.apache.mina.transport.socket.nio.MultiThreadSocketAcceptor(_processors,
new NewThreadExecutor());
}
else
{
_acceptor = new org.apache.mina.transport.socket.nio.SocketAcceptor(_processors, new NewThreadExecutor());
}
SocketAcceptorConfig sconfig = (SocketAcceptorConfig) _acceptor.getDefaultConfig();
SocketSessionConfig sc = (SocketSessionConfig) sconfig.getSessionConfig();