Export std net bind

This commit is contained in:
世界 2023-12-15 18:44:05 +08:00
parent b2a20cdd77
commit c63bc19bc9
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
6 changed files with 129 additions and 40 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