sm_yamux

package
v0.0.0-...-8b9b725 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT, MIT Imports: 5 Imported by: 12

README

go-smux-multistream - a go-stream-muxer shim for multistream

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

Installation

go get -d github.com/whyrusleeping/go-smux-yamux
cd $GOPATH/src/github.com/whyrusleeping/go-smux-yamux
make deps

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(16 * 1024 * 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