Scatter/Gather support on DatagramChannel
David M. Lloyd
david.lloyd at redhat.com
Sun Nov 30 10:22:51 PST 2008
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
More information about the nio-discuss
mailing list