peerpriority

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package peerpriority implements BEP 40.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Priority

type Priority = uint32

Priority is a number that determines the connect order for Peers.

func Calculate

func Calculate(a, b *net.TCPAddr) Priority

Calculate returns the priority of a to client address b.

Jump to

Keyboard shortcuts

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