Invoking sendmmsg from Go.

Wade Simmons wade at wades.im
Fri Sep 3 14:57:36 UTC 2021


On Wed, Sep 1, 2021 at 9:59 AM john at sys.casa <john at sys.casa> wrote:
> Given that, I was wondering if anybody knows a way to interface with
> sendmmsg from Go?

As an example, the golang.org/x/net/ipv4 package implements WriteBatch
using sendmmsg:

- https://pkg.go.dev/golang.org/x/net/ipv4#PacketConn.WriteBatch

You can either use that method, or peek at the source code to see how
the syscall is called.

-- 
Wade Simmons


More information about the WireGuard mailing list