Registry / networking / libp2p-go-reuseport

libp2p-go-reuseport

JSON →
library0.4.0gogounverified

Package reuseport provides Listen and Dial functions that set socket options to enable port reuse.

go get github.com/libp2p/go-reuseport
INSTALL
IMPORT
SIG · LIBP2P-GO-REUSEPOR
L
libp2p-go-reuseport
networkinggov0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

reuseport
github.com/libp2p/go-reuseport

Create a TCP listener that allows port reuse.

package main import ( "log" "github.com/libp2p/go-reuseport" ) func main() { ln, err := reuseport.Listen("tcp", ":8080") if err != nil { log.Fatal(err) } defer ln.Close() log.Println("Listening on :8080") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
libp2p-go-reuseport — go get libp2p-go-reuseport · libregistry