mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-02 17:27:50 -04:00
22 lines
247 B
Go
22 lines
247 B
Go
package internet
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type ConnectionHandler func(Connection)
|
|
|
|
type Reusable interface {
|
|
Reusable() bool
|
|
SetReusable(reuse bool)
|
|
}
|
|
|
|
type Connection interface {
|
|
net.Conn
|
|
Reusable
|
|
}
|
|
|
|
type SysFd interface {
|
|
SysFd() (int, error)
|
|
}
|