kget
dht Namespace Reference
Typedef Documentation
| typedef QList<DBItem> dht::DBItemList |
Definition at line 69 of file database.h.
| typedef std::map<dht::Key,KBucketEntry>::iterator dht::KNSitr |
Definition at line 29 of file kclosestnodessearch.cpp.
| typedef bt::PtrMap<Uint32,Task>::iterator dht::TaskItr |
Definition at line 30 of file taskmanager.cpp.
Enumeration Type Documentation
| enum dht::Method |
Function Documentation
| MsgBase* dht::MakeMsg | ( | bt::BDictNode * | dict | ) |
| MsgBase * dht::MakeRPCMsg | ( | bt::BDictNode * | dict, | |
| RPCServer * | srv | |||
| ) |
Creates a message out of a BDictNode.
- Parameters:
-
dict The BDictNode srv The RPCServer
- Returns:
- A newly created message or 0 upon error
Definition at line 251 of file rpcmsg.cpp.
| MsgBase * dht::MakeRPCMsgTest | ( | bt::BDictNode * | dict, | |
| dht::Method | req_method | |||
| ) |
Definition at line 273 of file rpcmsg.cpp.
| void dht::PackBucketEntry | ( | const KBucketEntry & | e, | |
| QByteArray & | ba, | |||
| Uint32 | off | |||
| ) |
Pack a KBucketEntry into a byte array.
If the array is not large enough, an error will be thrown
- Parameters:
-
e The entry ba The byte array off The offset into the array
| MsgBase* dht::ParseErr | ( | bt::BDictNode * | dict | ) |
Definition at line 232 of file rpcmsg.cpp.
| MsgBase* dht::ParseReq | ( | bt::BDictNode * | dict | ) |
Definition at line 45 of file rpcmsg.cpp.
| MsgBase* dht::ParseRsp | ( | bt::BDictNode * | dict, | |
| RPCServer * | srv | |||
| ) |
Definition at line 205 of file rpcmsg.cpp.
| MsgBase* dht::ParseRsp | ( | bt::BDictNode * | dict, | |
| dht::Method | req_method, | |||
| Uint8 | mtid | |||
| ) |
Definition at line 97 of file rpcmsg.cpp.
| static void dht::PrintRawData | ( | const QByteArray & | data | ) | [static] |
Definition at line 85 of file rpcserver.cpp.
| Key dht::RandomKeyInBucket | ( | Uint32 | b, | |
| const Key & | our_id | |||
| ) |
| KBucketEntry dht::UnpackBucketEntry | ( | const QByteArray & | ba, | |
| Uint32 | off, | |||
| int | ip_version | |||
| ) |
Unpack a KBucketEntry from a byte array.
If a full entry cannot be read an error will be thrown.
- Parameters:
-
ba The byte array off The offset ip_version The ip version (4 or 6)
- Returns:
- The entry
Variable Documentation
Definition at line 38 of file rpcmsg.cpp.
| const Uint32 dht::BUCKET_MAGIC_NUMBER = 0xB0C4B0C4 |
| const Uint32 dht::BUCKET_REFRESH_INTERVAL = 15 * 60 * 1000 |
| const QString dht::ERR_DHT = "e" |
Definition at line 39 of file rpcmsg.cpp.
| const Uint32 dht::MAX_CONCURRENT_REQS = 16 |
| const bt::Uint32 dht::MAX_ITEM_AGE = 30 * 60 * 1000 |
Definition at line 35 of file rpcmsg.cpp.
Definition at line 36 of file rpcmsg.cpp.
Definition at line 34 of file rpcmsg.cpp.
Definition at line 37 of file rpcmsg.cpp.
KDE 4.2 API Reference