4981129: (dc) DatagramSocket created by DatagramChannel does not provide sender info
Alan Bateman
Alan.Bateman at oracle.com
Fri Jun 18 04:40:52 PDT 2010
Chris Hegarty wrote:
> The change looks good.
>
> One minor comment, is it possible for
> DatagramChannelImpl.receive(ByteBuffer) to return the address from the
> previous packet received? Asyn interrupt or close? I'm not sure.
>
> -Chris.
Thanks for looking at this one. The DatagramChannel.receive(ByteBuffer)
method returns the datagram's source address. If it interrupted or the
channel is closed then an exception is thrown.
-Alan.
More information about the nio-dev
mailing list