mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-01-03 22:06:37 +08:00
删除一直未实现的Unix协议相关内容
This commit is contained in:
@@ -91,11 +91,6 @@ func (this *Listener) listenTCP() error {
|
||||
BaseListener: BaseListener{Group: this.group},
|
||||
Listener: netListener,
|
||||
}
|
||||
case serverconfigs.ProtocolUnix:
|
||||
this.listener = &UnixListener{
|
||||
BaseListener: BaseListener{Group: this.group},
|
||||
Listener: netListener,
|
||||
}
|
||||
default:
|
||||
return errors.New("unknown protocol '" + protocol.String() + "'")
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
package nodes
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs"
|
||||
"net"
|
||||
)
|
||||
|
||||
type UnixListener struct {
|
||||
BaseListener
|
||||
|
||||
Listener net.Listener
|
||||
}
|
||||
|
||||
func (this *UnixListener) Serve() error {
|
||||
// TODO
|
||||
// TODO 注意管理 CountActiveConnections
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *UnixListener) Close() error {
|
||||
// TODO
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *UnixListener) Reload(group *serverconfigs.ServerAddressGroup) {
|
||||
this.Group = group
|
||||
this.Reset()
|
||||
}
|
||||
Reference in New Issue
Block a user