mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-07 05:03:38 +00:00
tcpsock: define TCPListener as listener
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user