Scope of OpenJDK NIO
Alan Bateman
Alan.Bateman at Sun.COM
Wed Apr 30 11:39:32 PDT 2008
David M. Lloyd wrote:
> :
> Well, just the usual thoughts that come up whenever I deal with NIO:
>
> - DatagramChannels don't have a way to recover the destination address
> of an incoming datagram (iow, how do we know whether we just received
> a broadcast packet?)
This one has a long history, mostly because it wasn't feasible to
implement everywhere. It's a bit of niche requirement but the one
example that does come up every so often is the DHCP that needs to know
the interface that a datagram is received on. Michael McMahon (network
group) put work into this last year with a view to adding support in
jdk7. Here's a relatively recent mail from him on this topic:
http://mail.openjdk.java.net/pipermail/net-dev/2008-February/000140.html
So do you use broadcast datagrams in some application? Just curious, as
perhaps the new multicast support will be interesting.
> - unconnected DatagramChannels don't support scatter/gather
This is a no-brainer that we should do. I'm not aware that anyone has
ever asked for this but I will create an RFE for this today (I'll send
the bugID).
-Alan.
More information about the nio-dev
mailing list