mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-07 17:32:35 +00:00
12 lines
232 B
Go
12 lines
232 B
Go
package dev
|
|
|
|
// TunDevice is cross-platform tun interface
|
|
type TunDevice interface {
|
|
Name() string
|
|
URL() string
|
|
MTU() (int, error)
|
|
IsClose() bool
|
|
Close() error
|
|
Read(buff []byte) (int, error)
|
|
Write(buff []byte) (int, error)
|
|
}
|