Rejecting connections on open with a ServerSocketChannel
Iain McGinniss
iainmcgin at gmail.com
Mon Jul 27 06:48:53 EDT 2009
Hello all,
I have a situation in my code where I want to open a server socket
channel in order to claim the port, but I do not yet want to accept
any connections on this channel as the rest of the environment isn't
ready yet. Is there a way to stop the server channel from accepting
connections (and, preferrably, forcefully reject them), or is my only
option to close the connection as soon as I'm aware of it, i.e.
reacting to a ChildChannelStateEvent and calling close on the channel?
Iain
More information about the netty-users
mailing list