mplex

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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