Closing Channels in Netty
Thomas Bocek
bocek at ifi.uzh.ch
Mon Aug 24 23:08:55 EDT 2009
Michael McGrady wrote:
> Here is hopefully an easy question that I have not been doing good
> with. What is the best way to close a channel at both the sender and
> receiver (client and server) ends?
Channel.close() will close a TCP channel on the server and client side.
So you can call close() from either sender or receiver and it will close
both sides.
Thomas
More information about the netty-users
mailing list