Is Netty what I'm searching for?
Marc-André Laverdière
marcandre.laverdiere at gmail.com
Sun Jun 27 20:56:14 EDT 2010
If you handlers are stateless, you can share them as much as you want.
If they are stateful, then you can share them with a bit of care...
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and
complete, not lacking anything." -James 1:4
mlaverd.theunixplace.com/blog
/"\
\ / ASCII Ribbon Campaign
X against HTML e-mail
/ \
2010/6/28 Johan3 <hari97 at mymail.fi>:
>
> Thank you and thanks for all for answering!
>
> I also have a little question about UDP. I have a normal socket which I use
> for everything, but UDP would be good for sending player-coordinates and
> moves - "running" data, so it's not a problem if it loses some packets. In
> basic socket and its pipeline I have a handler for it. Could I use the same
> handler for UDP too? Is it possible that when a packet arrives - UDP or TCP
> - it calls always the same messageReceived(....) -method? Also, it would be
> good if user can define to use UDP or not. For example, there's some kind of
> a "writeUDPifDefined(ChannelBuffer b)" -method in the serverhandler, and if
> user have chosed to use UDP, it sends UDP-packet, otherwise it sends normal
> TCP-packet.
>
> Regards,
> Johan
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Is-Netty-what-I-m-searching-for-tp5186104p5228609.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
More information about the netty-users
mailing list