删除一直未实现的Unix协议相关内容

This commit is contained in:
刘祥超
2024-04-14 17:12:53 +08:00
parent 7e11ee98a9
commit 7141add68e
2 changed files with 0 additions and 33 deletions

View File

@@ -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() + "'")
}

View File

@@ -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()
}