scionutil

package
v0.0.0-...-42a8572 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathAlgoDefault = iota // default algorithm
	MTU                    // metric for path with biggest MTU
	Shortest               // metric for shortest path
)

metrics for path selection

Variables

This section is empty.

Functions

func AddHost

func AddHost(hostname, address string) error

AddHost adds a host to the map of known hosts An error is returned if the address has a wrong format or the hostname already exists The added host will not persist between program executions

func ChoosePathByMetric

func ChoosePathByMetric(pathAlgo int, local, remote *snet.Addr) *sciond.PathReplyEntry

ChoosePathByMetric chooses the best path based on the metric pathAlgo

func ChoosePathInteractive

func ChoosePathInteractive(local, remote *snet.Addr) *sciond.PathReplyEntry

ChoosePathInteractive presents the user a selection of paths to choose from

func GetDefaultDispatcher

func GetDefaultDispatcher() string

GetDefaultDispatcher returns the path to the default SCION dispatcher

func GetHostByName

func GetHostByName(hostname string) (libaddr.IA, libaddr.HostAddr, error)

GetHostByName returns the IA and HostAddr corresponding to hostname

func GetHostnamesByAddress

func GetHostnamesByAddress(address string) ([]string, error)

GetHostnamesByAddress returns the hostnames corresponding to address TODO: (chaehni) RAINS address query to resolve address to name

func GetLocalhost

func GetLocalhost() (*snet.Addr, error)

GetLocalhost returns a local SCION address an application can bind to

func GetLocalhostString

func GetLocalhostString() (string, error)

GetLocalhostString returns a local SCION address an application can bind to

func GetSCIONDPath

func GetSCIONDPath(ia *addr.IA) string

GetSCIONDPath returns the path to the SCION socket.

func InitSCION

func InitSCION(localAddr *snet.Addr) error

InitSCION initializes the default SCION networking context with the provided SCION address and the default SCIOND/SCION dispatcher

func InitSCIONString

func InitSCIONString(localAddr string) (*snet.Addr, error)

InitSCIONString initializes the default SCION networking context with provided SCION address in string format and the default SCIOND/SCION dispatcher

Types

This section is empty.

Jump to

Keyboard shortcuts

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