transport

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

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 9 Imported by: 0

README

go-utp-transport

Coverage Status Travis CI

A libp2p transport implementation for utp.

⚠️ Unmaintained ⚠️

This library is not currently maintained and isn't kept up-to-date with the latest go-libp2p releases. If you'd like to revive it, please fork it, get it working again, and start a discussion on https://discuss.libp2p.io/.

However, if you're just looking for a UDP-based libp2p transport, try QUIC. It's better in just about every way (1RTT handshake, built-in stream multiplexing with no head of line blocking, etc.).

Table of Contents

Install

make install

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 UtpSocket

type UtpSocket struct {
	// contains filtered or unexported fields
}

func (*UtpSocket) Accept

func (s *UtpSocket) Accept() (tpt.Conn, error)

func (*UtpSocket) Addr

func (t *UtpSocket) Addr() net.Addr

func (*UtpSocket) Close

func (t *UtpSocket) Close() error

func (*UtpSocket) Dial

func (s *UtpSocket) Dial(raddr ma.Multiaddr) (tpt.Conn, error)

func (*UtpSocket) DialContext

func (s *UtpSocket) DialContext(ctx context.Context, raddr ma.Multiaddr) (tpt.Conn, error)

func (*UtpSocket) Matches

func (s *UtpSocket) Matches(a ma.Multiaddr) bool

func (*UtpSocket) Multiaddr

func (t *UtpSocket) Multiaddr() ma.Multiaddr

type UtpTransport

type UtpTransport struct {
	// contains filtered or unexported fields
}

func NewUtpTransport

func NewUtpTransport() *UtpTransport

func (*UtpTransport) Dialer

func (t *UtpTransport) Dialer(laddr ma.Multiaddr, opts ...tpt.DialOpt) (tpt.Dialer, error)

func (*UtpTransport) Listen

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

func (*UtpTransport) Matches

func (d *UtpTransport) Matches(a ma.Multiaddr) bool

Jump to

Keyboard shortcuts

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