v2ray-core/transport/internet/connection.go

22 lines
247 B
Go
Raw Normal View History

2016-06-14 20:54:08 +00:00
package internet
import (
"net"
)
type ConnectionHandler func(Connection)
type Reusable interface {
Reusable() bool
SetReusable(reuse bool)
}
type Connection interface {
net.Conn
Reusable
}
2016-06-29 22:08:20 +00:00
type SysFd interface {
SysFd() (int, error)
}