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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.