Documentation ¶
Index ¶
- func AddrInfoFilterPrivateMaddrs(pi peer.AddrInfo) peer.AddrInfo
- func AddrInfoFilterPublicMaddrs(pi peer.AddrInfo) peer.AddrInfo
- func AddrsToMaddrs(addrs []string) ([]ma.Multiaddr, error)
- func FilterPrivateMaddrs(maddrs []ma.Multiaddr) []ma.Multiaddr
- func FilterPublicMaddrs(maddrs []ma.Multiaddr) []ma.Multiaddr
- func GetUDPBufferSize(conn *net.UDPConn) (rcvbuf int, sndbuf int, err error)
- func IsResourceLimitExceeded(err error) bool
- func MaddrsToAddrs(maddrs []ma.Multiaddr) []string
- func MergeMaddrs(maddrSet1 []ma.Multiaddr, maddrSet2 []ma.Multiaddr) []ma.Multiaddr
- func ToEnode(peerID peer.ID, maddrs []ma.Multiaddr) (*enode.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrInfoFilterPrivateMaddrs ¶
AddrInfoFilterPrivateMaddrs strips private multiaddrs from the given peer address information.
func AddrInfoFilterPublicMaddrs ¶
AddrInfoFilterPublicMaddrs strips public multiaddrs from the given peer address information.
func AddrsToMaddrs ¶
AddrsToMaddrs maps a slice of addresses to their multiaddress representation.
func FilterPrivateMaddrs ¶
FilterPrivateMaddrs strips private multiaddrs from the given peer address information.
func FilterPublicMaddrs ¶
FilterPublicMaddrs strips public multiaddrs from the given peer address information.
func GetUDPBufferSize ¶
GetUDPBufferSize reads the receive and send buffer sizes from the system
func IsResourceLimitExceeded ¶
IsResourceLimitExceeded returns true if the given error represents an error related to a limit of the local resource manager.
func MaddrsToAddrs ¶
MaddrsToAddrs maps a slice of multi addresses to their string representation.
func MergeMaddrs ¶
MergeMaddrs takes two slices of multi addresses and merges them into a single one.
Types ¶
This section is empty.