Best way to send continuous data in Java using Netty
Ioan Eugen Stan
stan.ieugen at gmail.com
Fri Jul 22 16:32:22 EDT 2011
2011/7/22 Amit Phatarphekar <amitechforums at gmail.com>:
> Ok. I'll let me ask the question a little differently - "How do I send data
> to the client continuously?".
>
>
> In the code below I'm trying to send localtime every 5 secs to the client
> from within channelConnected method.
> But it doesn't work for me. It works only if I comment the while loop.
> So if I want to send client time every 5 secs how do i do it?
>
Try using this http://download.oracle.com/javase/1,5.0/docs/api/java/util/Timer.html.
--
Ioan Eugen Stan
http://ieugen.blogspot.com/
More information about the netty-users
mailing list