peer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	IP   net.IP
	Port uint16
}

This represents a single peer in a announce response

func Unmarshal

func Unmarshal(peersBytes []byte) ([]Peer, error)

Unmarshal reads the announce response and parse the peers

func (Peer) String

func (p Peer) String() string

String returns a string representation for the Peer object

Jump to

Keyboard shortcuts

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