Custom channel identifier alternative

fatzopilot fatzopilot at gmx.net
Sat Jul 25 17:29:15 EDT 2009


Hi,

I am switching from another NIO based framework to Netty.  What I like with
the old framework is the possibility to set a custom identifier for a
channel. I use this to have a clear mapping of my clients (which have a
fixed and unique id) to individual channels. That way, I can easily identify
which clients are logged in etc. by querying the channel registry
(ChannelGroup in case of Netty). I could mimic this behaviour but it would
mean to introduce an additional map that maps from client IDs to Netty IDs
which would require additional program logic and make the whole thing more
complex and error prone. Is there a better (built in) way to accomplish
this?

Thanks
fatzopilot
-- 
View this message in context: http://n2.nabble.com/Custom-channel-identifier-alternative-tp3326889p3326889.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list