package
2.0.0-rc.2+incompatible
Repository: https://github.com/pushrax/chihaya.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
NewConnectionID creates a new 8 byte connection identifier for UDP packets as described by BEP 15.
NewFrontend creates a new instance of an UDP Frontend that asynchronously serves requests.
ParseAnnounce parses an AnnounceRequest from a UDP request.
ParseScrape parses a ScrapeRequest from a UDP request.
ValidConnectionID determines whether a connection identifier is legitimate.
WriteAnnounce encodes an announce response according to BEP 15.
WriteConnectionID encodes a new connection response according to BEP 15.
WriteError writes the failure reason as a null-terminated string.
WriteScrape encodes a scrape response according to BEP 15.
# Variables
ErrInvalidIP indicates an invalid IP.
# Structs
Config represents all of the configurable options for a UDP BitTorrent Tracker.
Frontend holds the state of a UDP BitTorrent Frontend.
Request represents a UDP payload received by a Tracker.
ResponseWriter implements the ability to respond to a Request via the io.Writer interface.