address

package
v2.0.437+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: AGPL-3.0 Imports: 10 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func External

func External() net.IP

External gets the external IP address.

func Parse

func Parse(addr string, defaultPort int) (*net.TCPAddr, error)

Parse parses a TCP address + port combination.

Types

type Fingerprint

type Fingerprint uint64

Fingerprint represents hardware fingerprint

func Hardware

func Hardware() Fingerprint

Hardware gets the hardware address.

func (Fingerprint) Hex

func (f Fingerprint) Hex() string

Hex returns the string in hex format.

func (Fingerprint) String

func (f Fingerprint) String() string

String encodes PeerName as a string.

Jump to

Keyboard shortcuts

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