libktorrent  2.2.0
Public Member Functions | Protected Attributes | List of all members
bt::PeerProtocolExtension Class Referenceabstract

#include <peerprotocolextension.h>

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

Public Member Functions

 PeerProtocolExtension (bt::Uint32 id, Peer *peer)
 
void changeID (Uint32 id)
 Change the ID.
 
virtual void handlePacket (const bt::Uint8 *packet, Uint32 size)=0
 Handle a packet.
 
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 overridden if update.
 

Protected Attributes

bt::Uint32 id
 
Peerpeer
 

Detailed Description

Base class for protocol extensions

Definition at line 37 of file peerprotocolextension.h.


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