sing-tun/tun.go
2022-07-13 20:51:53 +08:00

17 lines
265 B
Go

package tun
import (
N "github.com/sagernet/sing/common/network"
"gvisor.dev/gvisor/pkg/tcpip/stack"
)
type Handler interface {
N.TCPConnectionHandler
N.UDPConnectionHandler
}
type Tun interface {
NewEndpoint() (stack.LinkEndpoint, error)
Close() error
}