Documentation ¶
Overview ¶
Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/p2p/net/upgrader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AcceptQueueLength = 16
AcceptQueueLength is the number of connections to fully setup before not accepting any new connections Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.AcceptQueueLength instead.
var ErrNilPeer = errors.New("nil peer")
ErrNilPeer is returned when attempting to upgrade an outbound connection without specifying a peer ID. Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.ErrNilPeer instead.
Functions ¶
func New
deprecated
added in
v0.7.0
func New(secureMuxer sec.SecureMuxer, muxer network.Multiplexer, opts ...Option) (transport.Upgrader, error)
Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.New instead.
Types ¶
type Option
deprecated
added in
v0.7.0
Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.Option instead.
func WithAcceptTimeout
deprecated
added in
v0.7.0
func WithConnectionGater
deprecated
added in
v0.7.0
func WithConnectionGater(g connmgr.ConnectionGater) Option
Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.WithConnectionGater instead.
func WithResourceManager
deprecated
added in
v0.7.0
func WithResourceManager(m network.ResourceManager) Option
Deprecated: use github.com/libp2p/go-libp2p/p2p/net/upgrader.WithResourceManager instead.