Hi guys, I am trying to use Apache Mina with Android. Can anybody tell me when Mina's reactor loop actually get started.
for example. connector = new NioSocketConnector(); connector.getFilterChain().addLast("codec", new ProtocolCodecFilter(new TextLineCodecFactory(Charset.forName("UTF-8")))); connector.setHandler(this); //or any another class for(;;) { try { ConnectFuture Future = connector.connect(new InetSocketAddress(HOSTNAME, PORT)); Future.awaitUninterruptibly(); session = Future.getSession(); break; }catch(RuntimeIoException e) { LOGGER.info("***Failed to connect Server"); }//try-catch }//for-Future session.getCloseFuture().awaitUninterruptibly(); connector.dispose(); As per my testing, 'session' starts loop. If that is the case then is it blocking or separate thread? and if it's thread then does it run in main thread or creates its own thread? Thank You.