peerstream_yamux

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 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) (pst.Conn, error)

Jump to

Keyboard shortcuts

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