libktorrent  2.1.1
Public Member Functions | List of all members
bt::UTMetaData Class Reference

#include <utmetadata.h>

Inheritance diagram for bt::UTMetaData:
Inheritance graph
[legend]

Public Member Functions

 UTMetaData (const Torrent &tor, bt::Uint32 id, Peer *peer)
 
void handlePacket (const bt::Uint8 *packet, Uint32 size) override
 
void setReportedMetadataSize (Uint32 metadata_size)
 
- Public Member Functions inherited from bt::PeerProtocolExtension
 PeerProtocolExtension (bt::Uint32 id, Peer *peer)
 
void changeID (Uint32 id)
 Change the ID.
 
virtual bool needsUpdate () const
 Does this needs to be update.
 
void sendPacket (const QByteArray &data)
 Send an extension protocol packet.
 
virtual void update ()
 Virtual update function does nothing, needs to be overriden if update.
 

Additional Inherited Members

- Protected Attributes inherited from bt::PeerProtocolExtension
bt::Uint32 id
 
Peerpeer
 

Detailed Description

Handles ut_metadata extension

Definition at line 54 of file utmetadata.h.

Member Function Documentation

◆ handlePacket()

void bt::UTMetaData::handlePacket ( const bt::Uint8 *  packet,
Uint32  size 
)
overridevirtual

Handle a metadata packet

Implements bt::PeerProtocolExtension.

◆ setReportedMetadataSize()

void bt::UTMetaData::setReportedMetadataSize ( Uint32  metadata_size)

Set the reported metadata size


The documentation for this class was generated from the following file: