tcpsock: define TCPListener as listener

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2023-12-08 14:32:42 +01:00
parent 1c4a014aa7
commit 4f0d9658ab
+6
View File
@@ -289,3 +289,9 @@ func listenTCP(laddr *TCPAddr) (Listener, error) {
return &listener{fd: fd, laddr: laddr}, nil
}
// TCPListener is a TCP network listener. Clients should typically
// use variables of type Listener instead of assuming TCP.
type TCPListener struct {
listener
}