yamux

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 7 Imported by: 75

Documentation

Index

Constants

View Source
const ID = "/yamux/1.0.0"

Variables

This section is empty.

Functions

func NewMuxedConn added in v0.21.0

func NewMuxedConn(m *yamux.Session) network.MuxedConn

NewMuxedConn constructs a new MuxedConn from a yamux.Session.

Types

type Transport

type Transport yamux.Config

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

var DefaultTransport *Transport

func (*Transport) Config

func (t *Transport) Config() *yamux.Config

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