Hi Frédéric,
On Nov 22, 2007 3:23 AM, Frédéric Brégier <[EMAIL PROTECTED]> wrote:
> Hy all, I am on the way to upgrade to last version of trunk...
>
> I have one question on DemuxingIoHandler in trunk version.
> I used DemuxingIoHandler which enables messageSent function to
> be overload ("Invoked when a message written by IoSession.write(Object) is
> sent out.")
>
> I extend MessageHandler for my own message but now it implies the messageSent
> function (mandatory) too.
> ("Invoked when the specific type of message is received from the specified
> session."
> Of course here the manual from API has en error since it is obviously "is
> sent out" and not "is received")
Thanks for pointing out the JavaDoc error. I've just fixed it.
> But why those two functions ? Is one call after the other or just one only
> (and if so, which one) ?
It depends on situation but only one will be used and the other will
be left as blank method for most cases. Thinking of why... well, I
was somewhat crazy about creating more interfaces (i.e. replacing
MessageHandler with ReceivedMessageHandler and SentMessageHandler).
I'm not actually sure if it was a right decision. Please let me know
if splitting MessageHandler into the two interfaces makes more sense.
Thanks,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6