|
libktorrent
2.1.1
|
#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 overriden if update. | |
Protected Attributes | |
| bt::Uint32 | id |
| Peer * | peer |
Base class for protocol extensions
Definition at line 55 of file peerprotocolextension.h.
1.8.18