batch udp packet sending

This commit is contained in:
Jay Wren
2026-02-03 16:56:21 -05:00
parent 42bee7cf17
commit 15333f9fed
9 changed files with 133 additions and 1 deletions

View File

@@ -52,3 +52,15 @@ func (u *StdConn) PrepareRawMessages(n int) ([]rawMessage, [][]byte, [][]byte) {
return msgs, buffers, names
}
func setIovecBase(iov *iovec, base *byte) {
iov.Base = base
}
func setIovecLen(iov *iovec, l int) {
iov.Len = uint32(l)
}
func setMsghdrIovlen(hdr *msghdr, l int) {
hdr.Iovlen = uint32(l)
}