Netty Handler for Strings and Things

Iain McGinniss iainmcgin at gmail.com
Tue Aug 18 05:22:46 EDT 2009


Hi Mike,

No doubt you've stripped a lot of code out of what was attached below  
to make it easier to see what was going on, but just in case you  
hadn't: your code can be much more concisely expressed by extending  
SimpleChannelUpstreamHandler, as you weren't manipulating any of the  
downstream events and you only handle connected, disconnected and  
message reception on upstream.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: KarmaDecoder.java
Type: application/octet-stream
Size: 5879 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20090818/ea950810/attachment.obj 
-------------- next part --------------



I've stripped it down to what I see as the minimum without changing  
any of the real code. Apologies if this was obvious to you and you  
were splitting out all of the events manually for reasons that were  
stripped out of your original code.

Iain

On 17 Aug 2009, at 23:48, Michael McGrady wrote:

> Trustin,
>
> Here is the central class to the functionality mentioned earlier.
>
> Mike


More information about the netty-users mailing list