multistream

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, MIT Imports: 5 Imported by: 0

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/libp2p/go-stream-muxer-multistream
cd $GOPATH/src/github.com/libp2p/go-stream-muxer-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 mux.Multiplexer)

func (*Transport) NewConn

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

Jump to

Keyboard shortcuts

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