sm_yamux

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTransport = (*Transport)(&yamux.Config{
	AcceptBacklog:          256,
	EnableKeepAlive:        true,
	KeepAliveInterval:      30 * time.Second,
	ConnectionWriteTimeout: 10 * time.Second,
	MaxStreamWindowSize:    uint32(256 * 1024),
	LogOutput:              ioutil.Discard,
})

DefaultTransport has default settings for yamux

Functions

This section is empty.

Types

type Transport

type Transport yamux.Config

Transport is a go-peerstream transport that constructs yamux-backed connections.

func (*Transport) Config

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

func (*Transport) NewConn

func (t *Transport) NewConn(nc net.Conn, isServer bool) (smux.Conn, error)

Jump to

Keyboard shortcuts

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