mihomo/constant/listener.go
2022-11-11 22:44:44 +08:00

15 lines
226 B
Go

package constant
import "net"
type Listener interface {
RawAddress() string
Address() string
Close() error
}
type AdvanceListener interface {
Close()
Config() string
HandleConn(conn net.Conn, in chan<- ConnContext)
}