sm_yamux

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2016 License: MIT, 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,
	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