mplex

package
v0.27.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ID = "/mplex/6.7.0"

Variables

View Source
var DefaultTransport = &Transport{}

DefaultTransport has default settings for Transport

Functions

func NewMuxedConn added in v0.21.0

func NewMuxedConn(m *mp.Multiplex) network.MuxedConn

NewMuxedConn constructs a new Conn from a *mp.Multiplex.

Types

type Transport

type Transport struct{}

Transport implements mux.Multiplexer that constructs mplex-backed muxed connections.

func (*Transport) NewConn

func (t *Transport) NewConn(nc net.Conn, isServer bool, scope network.PeerScope) (network.MuxedConn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL