udp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPTracker

type UDPTracker struct {
	// contains filtered or unexported fields
}

func (*UDPTracker) Connections

func (u *UDPTracker) Connections() int

Connections returns the number of BitTorrent UDP protocol connections in the connection database.

func (*UDPTracker) Init

func (u *UDPTracker) Init(peerdb storage.Database)

Init sets up the UDPTracker.

func (*UDPTracker) Serve

func (u *UDPTracker) Serve() error

Serve begins listening and serving clients.

func (*UDPTracker) Shutdown

func (u *UDPTracker) Shutdown()

Shutdown stops the UDP tracker server by closing the socket.

func (*UDPTracker) WriteConns

func (u *UDPTracker) WriteConns() error

WriteConns writes the connection database to the disk.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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