17 lines
221 B
Go
17 lines
221 B
Go
|
package tcp
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
|
||
|
"git.loafle.net/commons_go/server"
|
||
|
)
|
||
|
|
||
|
type ServerHandlers struct {
|
||
|
server.ServerHandlers
|
||
|
}
|
||
|
|
||
|
func (sh *ServerHandlers) Listen() (net.Listener, error) {
|
||
|
|
||
|
return net.Listen("tcp", sh.Addr)
|
||
|
}
|