-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
UnixDatagram: please support vectored send #68612
Copy link
Copy link
Open
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-feature-requestCategory: A feature request, i.e: not implemented / a PR.Category: A feature request, i.e: not implemented / a PR.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The
UnixDatagramtype providessendandsend_tomethods, but does not provide a vectored send operation. Such an operation is particularly helpful for datagrams, where separate send operations result in separate datagrams; a vectored send allows sending data from multiple buffers in a single datagram.Given that
UnixDatagramonly runs on UNIX, wherewritevworks just fine on a socket, such an operation could usewritev; alternatively, this could usesendmsg, which supports supplying an iovec.sendmsgwould also allow a vectoredsend_tooperation.