package upgrader
import "github.com/libp2p/go-libp2p/p2p/net/upgrader"
Index ¶
- Variables
- func New(security []sec.SecureTransport, muxers []StreamMuxer, psk ipnet.PSK, rcmgr network.ResourceManager, connGater connmgr.ConnectionGater, opts ...Option) (transport.Upgrader, error)
- type Option
- type StreamMuxer
Variables ¶
var AcceptQueueLength = 16
AcceptQueueLength is the number of connections to fully setup before not accepting any new connections
ErrNilPeer is returned when attempting to upgrade an outbound connection without specifying a peer ID.
Functions ¶
func New ¶
func New(security []sec.SecureTransport, muxers []StreamMuxer, psk ipnet.PSK, rcmgr network.ResourceManager, connGater connmgr.ConnectionGater, opts ...Option) (transport.Upgrader, error)
Types ¶
type Option ¶
type Option func(*upgrader) error
func WithAcceptTimeout ¶
type StreamMuxer ¶
type StreamMuxer struct { ID protocol.ID Muxer network.Multiplexer }
Source Files ¶
conn.go listener.go threshold.go upgrader.go
- Version
- v0.42.0 (latest)
- Published
- Jun 18, 2025
- Platform
- linux/amd64
- Imports
- 19 packages
- Last checked
- 4 weeks ago –
Tools for package owners.