mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-22 00:09:44 +08:00
23 lines
331 B
Go
23 lines
331 B
Go
package netLayer
|
|
|
|
import (
|
|
"net"
|
|
"os"
|
|
)
|
|
|
|
//用于 listen和 dial 配置一些底层参数.
|
|
type Sockopt struct {
|
|
TProxy bool `toml:"tproxy"`
|
|
Somark int `toml:"mark"`
|
|
}
|
|
|
|
type ListenerWithFile interface {
|
|
net.Listener
|
|
File() (f *os.File, err error)
|
|
}
|
|
|
|
type ConnWithFile interface {
|
|
net.Conn
|
|
File() (f *os.File, err error)
|
|
}
|