addrselect

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package addrselect implements RFC 6724, which describes the preferred source and destination address selection algorithm for Internet Protocol version 6 (IPv6) and Internet Protocol version 4 (IPv4).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortByRFC6724

func SortByRFC6724(dial DialFunc, addrs []netip.Addr)

func SortByRFC6724withSrcs

func SortByRFC6724withSrcs(dial DialFunc, addrs []netip.Addr, srcs []netip.Addr)

Types

type DialFunc

type DialFunc func(network, address string) (stdnet.Conn, error)

Jump to

Keyboard shortcuts

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