On May 10, 2006, at 9:07 AM, Frederic Soulier wrote:
I was expecting when writing a message using IoSession.write(Object) CustomFilter <messageSent> -> MyEncoder (encode) -> IoHandler but instead I get: MyEncoder (encode) -> CustomFilter <messageSent> -> IoHandler which ruins my plans :)
messageSent is from the IoProcessor -> IoHandler indicating that the item was actually written
How can I get the behaviour I was expecting?
message
-> MyDecoder (decode)
-> CustomerFilter <messageReceived>
-> IoHandler (messageReceived)
(do some work)
- IoSession.write(Object)
CustomFilter (messageSent) <-
MyDecoder (encode) <-
IoHandler (messageSent) <-
You want IoFilter.filterWrite, which is the event for a message to be written (the IoHandler doesn't get this one, since it is generally the one that did the writing)
-pete -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
