mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-23 00:51:29 +00:00
17 lines
506 B
Go
17 lines
506 B
Go
|
package libbox
|
||
|
|
||
|
type PlatformInterface interface {
|
||
|
AutoDetectInterfaceControl(fd int32) error
|
||
|
OpenTun(options TunOptions) (TunInterface, error)
|
||
|
WriteLog(message string)
|
||
|
UseProcFS() bool
|
||
|
FindConnectionOwner(ipProtocol int32, sourceAddress string, sourcePort int32, destinationAddress string, destinationPort int32) (int32, error)
|
||
|
PackageNameByUid(uid int32) (string, error)
|
||
|
UIDByPackageName(packageName string) (int32, error)
|
||
|
}
|
||
|
|
||
|
type TunInterface interface {
|
||
|
FileDescriptor() int32
|
||
|
Close() error
|
||
|
}
|