Re: Why program exits after NioDatagramAcceptor's bind()?

2008-10-07 Thread hezjing
Hi Edwin Here is my program, public class Server { private final Logger logger = LoggerFactory.getLogger(Server.class); private Server(int port) throws IOException { NioDatagramAcceptor acceptor = new NioDatagramAcceptor(); acceptor.setHandler(new IoHandlerAdapter());

Re: Why program exits after NioDatagramAcceptor's bind()?

2008-10-07 Thread hezjing
There is nothing wrong with MINA and my program. It is because of my Ant build file, that I have to specify fork=true to make it works! target name=run depends=compile java classname=Server fork=true classpath refid=runtime.path / /java /target Thank you for all your help!

Re: Why program exits after NioDatagramAcceptor's bind()?

2008-10-07 Thread Ashish
Hez, The Program does not terminated. Its working fine, as expected listening. try sending some UDP packets and check the logs. Edwin has already explained that the call is non-blocking, and the worker threads are working in the background as non-daemon threads. Since the call is non-blocking,

Re: Bit access to IoBuffer

2008-10-07 Thread Emmanuel Lecharny
Andres Quijano wrote: You'll have to mask the rest of the byte for the next message... You just have to store the current position in the stored bytes. maybe create a class where you can add bits to it until it reaches the msg length, you'll have to keep count of which bits belong to which

Re: Bit access to IoBuffer

2008-10-07 Thread Emmanuel Lecharny
Pablo Palazon wrote: Hello! I know that I can access to IoBuffer with byte level, I only can get 1 byte each time. Is it possible to get only 1 bit??. My problem is like this: I have a data format with 26 bits (3 bytes and 2 bits more), there are 5 fields (3 fields of 1 byte and 2 fields of 1

Re: Bit access to IoBuffer

2008-10-07 Thread Pablo Palazon
El mar, 07-10-2008 a las 17:28 +0200, Emmanuel Lecharny escribió: Andres Quijano wrote: You'll have to mask the rest of the byte for the next message... You just have to store the current position in the stored bytes. maybe create a class where you can add bits to it until it reaches the

Re: using SSL with FTPServer

2008-10-07 Thread Niklas Gustavsson
On Mon, Oct 6, 2008 at 4:01 PM, David Latorre [EMAIL PROTECTED] wrote: I don't know if the docs are correct when it is said that the 'data channel' is only encrypted in passive mode. I think last time I checked, the data channel was encrypted in active mode too. Can anybody confirm one of