From: Wade Simmons <wade@wades.im>
To: wireguard@lists.zx2c4.com
Subject: Re: Invoking sendmmsg from Go.
Date: Fri, 3 Sep 2021 10:57:36 -0400 [thread overview]
Message-ID: <CAF63tRoz2pRTJe=sJoiZNPW-gqajQObqc2m0HDvwUfBw0v2TAA@mail.gmail.com> (raw)
In-Reply-To: <03143d09-112a-d28c-f79e-d97c01f7b1d2@sys.casa>
On Wed, Sep 1, 2021 at 9:59 AM john@sys.casa <john@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
prev parent reply other threads:[~2021-09-05 11:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 17:41 Invoking sendmmsg from Go john
2021-09-03 14:57 ` Wade Simmons [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAF63tRoz2pRTJe=sJoiZNPW-gqajQObqc2m0HDvwUfBw0v2TAA@mail.gmail.com' \
--to=wade@wades.im \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).