mirror of
https://github.com/slackhq/nebula.git
synced 2026-02-15 17:24:23 +01:00
batch udp packet sending
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user