status-go/vendor/github.com/libp2p/go-reuseport-transport
RichΛrd 40359f9c1b
go-waku integration (#2247)
* Adding wakunode module
* Adding wakuv2 fleet files
* Add waku fleets to update-fleet-config script
* Adding config items for waku v2
* Conditionally start waku v2 node depending on config
* Adapting common code to use go-waku
* Setting log level to info
* update dependencies
* update fleet config to use WakuNodes instead of BootNodes
* send and receive messages
* use hash returned when publishing a message
* add waku store protocol
* trigger signal after receiving store messages
* exclude linting rule SA1019 to check deprecated packages
2021-06-16 16:19:45 -04:00
..
.travis.yml go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
LICENSE Add rendezvous implementation for discovery interface 2018-07-25 15:10:57 +03:00
README.md go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
codecov.yml migrate to go 1.12 and go modules 2019-06-12 13:12:00 +02:00
dial.go Add rendezvous implementation for discovery interface 2018-07-25 15:10:57 +03:00
go.mod go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
go.sum go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
listen.go Add rendezvous implementation for discovery interface 2018-07-25 15:10:57 +03:00
multidialer.go go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
reuseport.go go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
reuseport_plan9.go go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
reuseport_posix.go go-waku integration (#2247) 2021-06-16 16:19:45 -04:00
singledialer.go Add rendezvous implementation for discovery interface 2018-07-25 15:10:57 +03:00
transport.go Add rendezvous implementation for discovery interface 2018-07-25 15:10:57 +03:00

README.md

go-reuseport-transport

Discourse posts GoDoc Build Status

Basic reuseport TCP transport

This package provides a basic transport for automatically (and intelligently) reusing TCP ports.

To use, construct a new Transport (the zero value is safe to use) and configure any listeners (tr.Listen(...)).

Then, when dialing (tr.Dial(...)), the transport will attempt to reuse the ports it's currently listening on, choosing the best one depending on the destination address.

NOTE: Currently, we don't make any attempts to prevent two reusport transports from interfering with each other (reusing each other's ports). However, we reserve the right to fix this in the future.

Install

go-reuseport-transport is a standard Go module which can be installed with:

go get github.com/libp2p/go-reuseport-transport

This repo is gomod-compatible, and users of go 1.11 and later with modules enabled will automatically pull the latest tagged release by referencing this package. Upgrades to future releases can be managed using go get, or by editing your go.mod file as described by the gomod documentation.

Current use in libp2p

This package is currently used by the go-tcp-transport libp2p transport and will likely be used by more libp2p transports in the future.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the libp2p Code of Conduct.

Want to hack on libp2p?

License

MIT


The last gx published version of this module was: 0.2.3: QmTmbamDjDWgHe8qeMt7ZpaeNpTj349JpFKuwTF321XavT