mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 21:31:16 +08:00
24 lines
397 B
Go
24 lines
397 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)
|
|
}
|
|
|
|
type NewListener interface {
|
|
Name() string
|
|
ReCreate(tcpIn chan<- ConnContext, udpIn chan<- PacketAdapter) error
|
|
Close() error
|
|
Address() string
|
|
RawAddress() string
|
|
}
|