Scatter/Gather support on DatagramChannel
Alan Bateman
Alan.Bateman at Sun.COM
Sun Nov 30 12:02:05 PST 2008
David M. Lloyd wrote:
> DatagramChannel has scatter/gather support for connected sockets but
> not unconnected sockets.
>
> How about adding a couple methods:
>
> SocketAddress receive(ByteBuffer[] dsts) throws IOException;
>
> SocketAddress receive(ByteBuffer[] dsts, int offset, int length)
> throws IOException;
>
> long send(ByteBuffer[] src, SocketAddress target) throws IOException;
>
> long send(ByteBuffer[] src, int offset, int length, SocketAddress
> target) throws IOException;
>
> I for one use scatter/gather frequently, and would really welcome such
> methods on DatagramChannel.
>
> Thanks,
> - DML
6696470 is tracking this but it has been low priority (and is a bit more
work that might be apparent because it requires replacing part of the
existing implementation, Windows mostly, but also work on other platforms).
-Alan.
More information about the nio-discuss
mailing list