mplex

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 5 Imported by: 57

README

DEPRECATION NOTICE

mplex has been deprecated.

see https://github.com/libp2p/specs/issues/553 for details

go-libp2p-mplex - a go-stream-muxer shim for multiplex

This is an implementation of the go-libp2p muxer interface for multiplex. For more information, see that repo.

Documentation

Overview

DEPRECATED: mplex has been deprecated. Users should prefer Yamux over mplex. see https://github.com/libp2p/specs/issues/553 for details

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.9.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