Safe way to disconnect the client from the server?
Christian (VuuRWerK) Seifert
vuurwerk.christian at googlemail.com
Mon Jul 19 04:58:38 EDT 2010
Hi netty-list,
sorry for disturbing again :/ (so I'm wait already for an answer to my
other question ;)) but I've got a new question.
How can I inform the server about the disconnect of my client? At the
moment it raises an IOException which I caught in the overridden
"exceptionCaught(ChannelHandlerContext, ExceptionEvent)" method at the
server-side. But I search a way that the client can inform the server
about the disconnection and could do some cleanup work. So I just need
the way to dispatch the client from the server channel or something
like that, because I want to send a message from the client to the
server that the client is ready to disconnect, the server should do
the dispatch and the client can disconnect. The server shouldn't
caught any exception. Is there any way to do that or something
similar?
Thanks in advance!
- Christian
More information about the netty-users
mailing list