utp

package module
v0.0.0-...-fcb526a Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 11 Imported by: 0

README

go-utp-transport

GoDoc Coverage Status Travis CI

A libp2p transport implementation for utp.

Table of Contents

Install

go get github.com/libp2p/go-utp-transport

API

Check out the GoDocs.

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Jeromy Johnson

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtpTransport

type UtpTransport struct {
	// The upgrader upgrade connections from raw utp to full saffed multiplexed ones.
	// I'm not sure if the default encryption and multiplexer are capable to deal well with utp, need test.
	Upgrader *tptu.Upgrader
	// contains filtered or unexported fields
}

func NewUtpTransport

func NewUtpTransport(u *tptu.Upgrader) *UtpTransport

func (*UtpTransport) CanDial

func (t *UtpTransport) CanDial(addr ma.Multiaddr) bool

func (*UtpTransport) Dial

func (t *UtpTransport) Dial(ctx context.Context, raddr ma.Multiaddr, p peer.ID) (tpt.CapableConn, error)

func (*UtpTransport) Listen

func (t *UtpTransport) Listen(laddr ma.Multiaddr) (tpt.Listener, error)

func (*UtpTransport) Protocols

func (t *UtpTransport) Protocols() []int

func (*UtpTransport) Proxy

func (t *UtpTransport) Proxy() bool

Jump to

Keyboard shortcuts

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