yamux

package
v0.5.1-pp-node Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "net.transport.yamux"

Variables

This section is empty.

Functions

func NewMultiConn

func NewMultiConn(cctx context.Context, luConn *connutil.LastUsageConn, addr string, sess *yamux.Session) transport.MultiConn

Types

type Config

type Config struct {
	ListenAddrs        []string `yaml:"listenAddrs"`
	WriteTimeoutSec    int      `yaml:"writeTimeoutSec"`
	DialTimeoutSec     int      `yaml:"dialTimeoutSec"`
	KeepAlivePeriodSec int      `yaml:"keepAlivePeriodSec"`
}

type Yamux

type Yamux interface {
	transport.Transport
	AddListener(lis net.Listener)
	app.ComponentRunnable
}

Yamux implements transport.Transport with tcp+yamux

func New

func New() Yamux

Jump to

Keyboard shortcuts

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