ing
This commit is contained in:
parent
265d562d31
commit
40422f2d22
|
@ -2,7 +2,6 @@ package server
|
|||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"net"
|
||||
"time"
|
||||
)
|
||||
|
@ -29,7 +28,12 @@ type ConnectionHandlers struct {
|
|||
}
|
||||
|
||||
func (ch *ConnectionHandlers) Listener(serverCtx ServerCtx) (net.Listener, error) {
|
||||
return nil, fmt.Errorf("Method[ConnectionHandler.Listener] is not implemented")
|
||||
l, err := net.Listen(ch.Network, ch.Address)
|
||||
if nil != err {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return l, nil
|
||||
}
|
||||
|
||||
func (ch *ConnectionHandlers) GetConcurrency() int {
|
||||
|
|
Loading…
Reference in New Issue
Block a user