Clarification of UDP Support
Simon James
sjames at btisystems.com
Fri Sep 11 09:30:36 EDT 2009
Thomas
Thanks for the quick response; it prompted me to look harder at my own code
and I found the problem (my encoder was not passing on the remote address
when sending the channel buffer downstream).
Thanks again.
Simon
Simon James wrote:
>
> Hi
>
> I’m looking for guidance on the level of support for datagram sockets in
> Netty.
>
> I need to be able to:
> 1) bind a handler to a datagram socket on a known port,
> 2) use the same channel returned by the bind to send packets to different
> remote addresses
>
> The first part works OK but, if I use write(Object message, SocketAddress
> remoteAddress), I get a NotYetConnectedException.
>
> I am using NIO with v3.1.3.
>
> When I started to investigate this issue, I cam across Trustin Lee’s
> comment (gleamynode article 1502)
>
> “UDP is not ready in Netty yet, but I believe it will be fully implemented
> in 3.2”
>
> Although, v3.1.3 includes support for NioDatagramChannelFactory, I note
> that the QOTM example still uses OIO.
>
> So, it’s not clear to me whether I can achieve what I need to with Netty
> and, if it is, what version and package I should be using.
>
> I will be grateful for any guidance.
>
> Regards
>
> Simon
>
--
View this message in context: http://n2.nabble.com/Clarification-of-UDP-Support-tp3625272p3625812.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list