How do I unbind a server socket once I call bind()

Virat Gohil virat4lug at gmail.com
Mon Mar 9 06:13:21 EDT 2009


Hi All,

I have created a ServerSocketChannelFactory as follows:

factory = new
NioServerSocketChannelFactory(Executors.newCachedThreadPool(),Executors.newCachedThreadPool(),numHandlerThreads);
bootstrap = new ServerBootstrap(factory);
bootstrap.bind(new InetSocketAddress(PORT));

My question is, how do I unbind the port when shutting down my server.

Thanks in advance!

Virat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20090309/475247ca/attachment.html 


More information about the netty-users mailing list