Simple Implementation advice needed
fwachs
fefewachs at gmail.com
Fri Aug 26 08:28:32 EDT 2011
Hi everybody! I'm new to netty so please bear with me :)
I'm building an MMO iPhone game, and I've chosen netty as my socket server
implementation.
I need to be able to send messages among different Channels, would you
recommend saving a ChannelGroup instance variable on the ServerHandler ?
This way when certain action X happens, which affects user Y, I can go and
search the Channel for Y and write to him.
Would you do this? If not, how would you implement something like this?
Thanks a lot in advance, I would really appreciate your input here.
Federico
To Clarify a bit:
On my ServerPipelineFactory I do this:
pipeline.addLast("handler", handler);
Where handler is an instance of the class as well passed into the
constructor of the pipelineFactory.
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Simple-Implementation-advice-needed-tp6728540p6728540.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list