Documentation ¶
Index ¶
- Constants
- func AddHost(hostname, address string) error
- func ChoosePathByMetric(pathAlgo int, local, remote *snet.Addr) *sciond.PathReplyEntry
- func ChoosePathInteractive(local, remote *snet.Addr) *sciond.PathReplyEntry
- func GetDefaultDispatcher() string
- func GetHostByName(hostname string) (libaddr.IA, libaddr.HostAddr, error)
- func GetHostnamesByAddress(address string) ([]string, error)
- func GetLocalhost() (*snet.Addr, error)
- func GetLocalhostString() (string, error)
- func GetSCIONDPath(ia *addr.IA) string
- func InitSCION(localAddr *snet.Addr) error
- func InitSCIONString(localAddr string) (*snet.Addr, error)
Constants ¶
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 ¶
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 ¶
GetHostByName returns the IA and HostAddr corresponding to hostname
func GetHostnamesByAddress ¶
GetHostnamesByAddress returns the hostnames corresponding to address TODO: (chaehni) RAINS address query to resolve address to name
func GetLocalhost ¶
GetLocalhost returns a local SCION address an application can bind to
func GetLocalhostString ¶
GetLocalhostString returns a local SCION address an application can bind to
func GetSCIONDPath ¶
GetSCIONDPath returns the path to the SCION socket.
Types ¶
This section is empty.