mplex

package
v0.0.0-...-c6f7f91 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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

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