Export std net bind

This commit is contained in:
世界 2023-12-15 18:44:05 +08:00
parent a71256d250
commit 73f8c6542b
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 129 additions and 39 deletions

View file

@ -57,6 +57,8 @@ type Bind interface {
// BatchSize is the number of buffers expected to be passed to
// the ReceiveFuncs, and the maximum expected to be passed to SendBatch.
BatchSize() int
SetReservedForEndpoint(destination netip.AddrPort, reserved [3]byte)
}
// BindSocketToInterface is implemented by Bind objects that support being