netgolang.org/x/net/netutil Index | Files

package netutil

import "golang.org/x/net/netutil"

Package netutil provides network utility functions, complementing the more common ones in the net package.

Index

Functions

func LimitListener

func LimitListener(l net.Listener, n int) net.Listener

LimitListener returns a Listener that accepts at most n simultaneous connections from the provided Listener.

Source Files

listen.go

Version
v0.35.0 (latest)
Published
Feb 10, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
7 minutes ago

Tools for package owners.