package upgrader

Import Path
	github.com/libp2p/go-libp2p/p2p/net/upgrader (on go.dev)

Dependency Relation
	imports 19 packages, and imported by 4 packages


Package-Level Type Names (total 2)
/* sort by: | */
func WithAcceptTimeout(t time.Duration) Option func New(security []sec.SecureTransport, muxers []StreamMuxer, psk ipnet.PSK, rcmgr network.ResourceManager, connGater connmgr.ConnectionGater, opts ...Option) (transport.Upgrader, error)
ID protocol.ID Muxer network.Multiplexer func New(security []sec.SecureTransport, muxers []StreamMuxer, psk ipnet.PSK, rcmgr network.ResourceManager, connGater connmgr.ConnectionGater, opts ...Option) (transport.Upgrader, error) func github.com/libp2p/go-libp2p/p2p/security/noise.New(id protocol.ID, privkey crypto.PrivKey, muxers []StreamMuxer) (*noise.Transport, error) func github.com/libp2p/go-libp2p/p2p/security/tls.New(id protocol.ID, key ci.PrivKey, muxers []StreamMuxer) (*libp2ptls.Transport, error)
Package-Level Functions (total 2)
func New(security []sec.SecureTransport, muxers []StreamMuxer, psk ipnet.PSK, rcmgr network.ResourceManager, connGater connmgr.ConnectionGater, opts ...Option) (transport.Upgrader, error)
Package-Level Variables (total 2)
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.