Clash.Meta/constant/listener.go

16 lines
226 B
Go
Raw Normal View History

2021-08-01 00:35:37 +08:00
package constant
import "net"
2021-08-01 00:35:37 +08:00
type Listener interface {
RawAddress() string
Address() string
Close() error
}
type AdvanceListener interface {
Close()
Config() string
HandleConn(conn net.Conn, in chan<- ConnContext)
}