Add flow PortWithSelectorRange

This commit is contained in:
世界 2026-07-08 17:05:34 +08:00
parent 7c92d5e53e
commit 15b67423c3
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 27 additions and 7 deletions

View file

@ -73,6 +73,11 @@ type Port interface {
WritePackets(packets [][]byte) error
}
type PortWithSelectorRange interface {
Port
PortSelectorRange() (start uint16, count uint16)
}
type Return interface {
ReturnHeadroom() int
ReturnPackets(packets [][]byte) [][]byte