19 lines
265 B
Go
19 lines
265 B
Go
package tun
|
|
|
|
import (
|
|
"io"
|
|
|
|
E "github.com/sagernet/sing/common/exceptions"
|
|
N "github.com/sagernet/sing/common/network"
|
|
)
|
|
|
|
type Handler interface {
|
|
N.TCPConnectionHandler
|
|
N.UDPConnectionHandler
|
|
E.Handler
|
|
}
|
|
|
|
type Tun interface {
|
|
io.ReadWriter
|
|
Close() error
|
|
}
|