tracker

package
v0.0.0-...-ace0c27 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(file torrentfile.MetainfoFile, peerId [20]byte) (string, error)

Types

type Peer

type Peer struct {
	IP   net.IP
	Port uint16
}

func SavePeers

func SavePeers(peers string) ([]Peer, error)

func (Peer) String

func (p Peer) String() string

type Trackerresponse

type Trackerresponse struct {
	Interval int64
	Peers    []Peer
}

func ParseResponse

func ParseResponse(resp string) Trackerresponse

Jump to

Keyboard shortcuts

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