Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AcceptQueueLength = 16
AcceptQueueLength is the number of connections to fully setup before not accepting any new connections
View Source
var ErrNilPeer = errors.New("nil peer")
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 StreamMuxer ¶
type StreamMuxer struct { ID protocol.ID Muxer network.Multiplexer }
Click to show internal directories.
Click to hide internal directories.