Hi
I have the following UDP server code,

        NioDatagramAcceptor acceptor = new NioDatagramAcceptor();
        // temporary set to IoHandlerAdapter ...
        acceptor.setHandler(new IoHandlerAdapter());

        DefaultIoFilterChainBuilder chain = acceptor.getFilterChain();
        chain.addLast("logger", new LoggingFilter());

        DatagramSessionConfig sessionConfig = acceptor.getSessionConfig();
        sessionConfig.setReuseAddress(true);

        acceptor.bind(new InetSocketAddress(port));


The problem now is the code is executed successfully and terminated after
the bind().
I think the program should stay and listen to the specified port after the
bind()?


Please help, thank you!


-- 

Hez

Reply via email to