libktorrent
2.2.0
|
#include <peerprotocolextension.h>
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 |
Peer * | peer |
Base class for protocol extensions
Definition at line 37 of file peerprotocolextension.h.