chore: rebuild InboundListener
This commit is contained in:
@ -14,11 +14,16 @@ type AdvanceListener interface {
|
||||
HandleConn(conn net.Conn, in chan<- ConnContext)
|
||||
}
|
||||
|
||||
type NewListener interface {
|
||||
type InboundListener interface {
|
||||
Name() string
|
||||
Listen(tcpIn chan<- ConnContext, udpIn chan<- PacketAdapter) error
|
||||
Close() error
|
||||
Address() string
|
||||
RawAddress() string
|
||||
Config() string
|
||||
Config() InboundConfig
|
||||
}
|
||||
|
||||
type InboundConfig interface {
|
||||
Name() string
|
||||
Equal(config InboundConfig) bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user