mavsnet

package
v0.0.0-...-38e79e5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(remote ma.Multiaddr) (manet.Conn, error)

Dial connects to a remote address. It uses an underlying vsock.Conn, then wraps it in a manet.Conn object (with local and remote Multiaddrs).

func DialArgs

func DialArgs(m ma.Multiaddr) (contextID, port uint32, err error)

DialArgs is a convenience function that returns cid and port as expected by vsock.Dial.

func DialContext

func DialContext(ctx context.Context, remote ma.Multiaddr) (manet.Conn, error)

DialContext allows to provide a custom context to Dial().

func Listen

func Listen(laddr ma.Multiaddr) (manet.Listener, error)

Listen announces on the local network address laddr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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