You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by Wenrui Guo <we...@ericsson.com> on 2008/07/24 04:03:47 UTC
How to block or allow some kind of network packet can flow from codecfilter to iohandler
Hey, all
In my application, there's a special requirement that force application
to block some sort of network packet continue to flow to IoHandler from
ProtocolCodecFilter. By my understanding, if programmer doesn't write
anything to ProtocolDecoderOutput, then subsequent IoHandler won't
receive the corresponding message generated by such network packet.
Could anybody tell me if it behaviors like the above?
BR
anderson
RE: How to block or allow some kind of network packet can flow from codecfilter to iohandler
Posted by Wenrui Guo <we...@ericsson.com>.
Yes, I can. But in order to get higher performance, I don't want the
computer spend time on those messages that it won't process.
So, Do you think I can block the message inside ProtocolCodecFilter?
BR
anderson
-----Original Message-----
From: Oscar [mailto:ro4tub@gmail.com]
Sent: Thursday, July 24, 2008 10:31 AM
To: users@mina.apache.org
Subject: Re: How to block or allow some kind of network packet can flow
from codecfilter to iohandler
Does your network packet mean logical packet (or message)?
If yes, I think you'd better ignore it in *messageReceived* or the the
handler of your packet.
On Thu, Jul 24, 2008 at 10:03 AM, Wenrui Guo <we...@ericsson.com>
wrote:
> Hey, all
>
> In my application, there's a special requirement that force
> application to block some sort of network packet continue to flow to
> IoHandler from ProtocolCodecFilter. By my understanding, if programmer
> doesn't write anything to ProtocolDecoderOutput, then subsequent
> IoHandler won't receive the corresponding message generated by such
network packet.
>
> Could anybody tell me if it behaviors like the above?
>
> BR
> anderson
>
Re: How to block or allow some kind of network packet can flow from codecfilter to iohandler
Posted by Oscar <ro...@gmail.com>.
Does your network packet mean logical packet (or message)?
If yes, I think you'd better ignore it in *messageReceived* or the the
handler of your packet.
On Thu, Jul 24, 2008 at 10:03 AM, Wenrui Guo <we...@ericsson.com>
wrote:
> Hey, all
>
> In my application, there's a special requirement that force application
> to block some sort of network packet continue to flow to IoHandler from
> ProtocolCodecFilter. By my understanding, if programmer doesn't write
> anything to ProtocolDecoderOutput, then subsequent IoHandler won't
> receive the corresponding message generated by such network packet.
>
> Could anybody tell me if it behaviors like the above?
>
> BR
> anderson
>