I have a written a very simple UDP Server using Netty - it quite happily binds itself and accepts messages, but I can'y figure out how to unbind it.
Am I missing something, or does Netty not expose the necessary APIs to unbind a server?
Edit
Here is the code I am using to bind the server:
DatagramChannelFactory f = new NioDatagramChannelFactory(Executors.newCachedThreadPool());
ConnectionlessBootstrap b = new ConnectionlessBootstrap(f);
ChannelPipeline p = b.getPipeline();
p.addLast("encoder", new StringEncoder());
p.addLast("decoder", new StringDecoder());
p.addLast("logic", this);
chan = b.bind(new InetSocketAddress(port));