multistream

package module
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 5 Imported by: 35 modules, 32 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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-multistream
cd $GOPATH/src/github.com/whyrusleeping/go-smux-multistream
make deps

Documentation

Overview

package multistream implements a peerstream transport using go-multistream to select the underlying stream muxer

Index

Constants

This section is empty.

Variables

View Source
var DefaultNegotiateTimeout = time.Second * 60

Functions

This section is empty.

Types

type Transport

type Transport struct {
	NegotiateTimeout time.Duration

	OrderPreference []string
	// contains filtered or unexported fields
}

func NewBlankTransport

func NewBlankTransport() *Transport

func (*Transport) AddTransport

func (t *Transport) AddTransport(path string, tpt smux.Transport)

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
⌂ 换网址