1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-02 09:17:55 -04:00
v2fly/transport/internet/connection.go

22 lines
247 B
Go
Raw Normal View History

2016-06-14 16:54:08 -04: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 18:08:20 -04:00
type SysFd interface {
SysFd() (int, error)
}