You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Recvmmsg wrapper that exposes the recvmmsg(2) system call,
allowing callers to receive multiple messages from a socket in a
single syscall.
ps and oobs are parallel slices of per-message payload and control
buffers, with vlen derived from len(ps). Each message uses a single
buffer rather than a scatter-gather vector, which should be sufficient
for the typical recvmmsg use case. The return values ns, oobns,
recvflags, and from are parallel slices of length n (the number of
messages received).
This is a first step toward golang/go#45886.
The wrapper is useful as-is and lets callers experiment with batch
receive patterns before a poller-integrated net package API is
designed.
0 commit comments