Searched refs:btDict (Results 1 – 10 of 10) sorted by relevance
/dports/net-p2p/libbt/libbt-1.06/include/ |
H A D | types.h | 39 typedef struct btDict { struct 46 } btDict; argument 49 btDict *d; 78 btDict* btDict_cast( btObject *o) ; 79 btDictIt* btDictIt_create( btDictIt *buf, btDict *d) ; 80 btDictIt* btDict_iterator( btDict *d) ; 84 btDict* btDict_create( btDict *buf) ; 85 void btDict_destroy( btDict *_this) ; 86 int btDict_add( btDict *_this, btString* k, btObject* v) ; 87 btObject* btDict_find( btDict *_this, btString* k) ;
|
H A D | benc.h | 21 int benc_put_dict( struct btStream *bts, btDict *d) ; 22 int benc_get_dict( struct btStream *bts, btDict *a) ;
|
H A D | peerexchange.h | 44 int buildDictFromCurrentPeersForPeer(btDict *targetDict, struct btPeer *peer);
|
/dports/net-p2p/libbt/libbt-1.06/src/ |
H A D | types.c | 210 btDict* btDict_cast( btObject *o) { in btDict_cast() 213 return (btDict*)o; in btDict_cast() 216 void btDict_dump( int e, btDict *d) { in btDict_dump() 240 btDictIt* btDict_iterator( btDict *d) { in btDict_iterator() 262 btDict* btDict_create( btDict *buf) { in btDict_create() 265 memset( buf, 0, sizeof(btDict)); in btDict_create() 271 void btDict_destroy( btDict *_this) { in btDict_destroy() 357 sz=sizeof(btDict); in btObject_sizeof() 379 btDict_destroy((btDict*)b); in btObject_destroy() 399 btDict_dump( d, (btDict*)b); in btObject_dump() [all …]
|
H A D | benc.c | 191 int benc_put_dict( struct btStream *bts, btDict *d) { in benc_put_dict() 224 int benc_get_dict( struct btStream *bts, btDict *a) { in benc_get_dict() 274 res = benc_put_dict( bts, (btDict*)o); in benc_put_object() 294 btDict *d; in benc_get_object()
|
H A D | peerexchange.c | 31 btDict *extendedHandshakeDict, *messageDict; in sendExtendedHandshake() 102 int buildDictFromDownloadForPeer(btDownload *dl, btDict *targetDict, btPeer *peer) in buildDictFromDownloadForPeer() 180 btDict *exchangeDict; in sendPeerExchange()
|
H A D | btlist.c | 71 btDict *files; in scrape() 105 btDict *d; in main()
|
/dports/www/aria2/aria2-1.36.0/test/ |
H A D | RpcMethodTest.cc | 976 auto btDict = downcast<Dict>(entry->get("bittorrent")); in testGatherStoppedDownload_bt() local 977 CPPUNIT_ASSERT(btDict); in testGatherStoppedDownload_bt() 1045 auto btDict = Dict::g(); in testGatherBitTorrentMetadata() local 1052 downcast<String>(btDict->get("mode"))->s()); in testGatherBitTorrentMetadata() 1073 btDict = Dict::g(); in testGatherBitTorrentMetadata() 1074 gatherBitTorrentMetadata(btDict.get(), modBtAttrs); in testGatherBitTorrentMetadata() 1075 CPPUNIT_ASSERT(!btDict->containsKey("comment")); in testGatherBitTorrentMetadata() 1076 CPPUNIT_ASSERT(!btDict->containsKey("creationDate")); in testGatherBitTorrentMetadata() 1077 CPPUNIT_ASSERT(!btDict->containsKey("mode")); in testGatherBitTorrentMetadata() 1078 CPPUNIT_ASSERT(!btDict->containsKey("info")); in testGatherBitTorrentMetadata() [all …]
|
/dports/www/aria2/aria2-1.36.0/src/ |
H A D | RpcMethodImpl.cc | 694 void gatherBitTorrentMetadata(Dict* btDict, TorrentAttribute* torrentAttrs) in gatherBitTorrentMetadata() argument 697 btDict->put(KEY_COMMENT, torrentAttrs->comment); in gatherBitTorrentMetadata() 703 btDict->put(KEY_MODE, bittorrent::getModeString(torrentAttrs->mode)); in gatherBitTorrentMetadata() 713 btDict->put(KEY_ANNOUNCE_LIST, std::move(destAnnounceList)); in gatherBitTorrentMetadata() 717 btDict->put(KEY_INFO, std::move(infoDict)); in gatherBitTorrentMetadata() 732 auto btDict = Dict::g(); in gatherProgressBitTorrent() local 733 gatherBitTorrentMetadata(btDict.get(), torrentAttrs); in gatherProgressBitTorrent() 734 entryDict->put(KEY_BITTORRENT, std::move(btDict)); in gatherProgressBitTorrent() 917 auto btDict = Dict::g(); in gatherStoppedDownload() local 918 gatherBitTorrentMetadata(btDict.get(), attrs); in gatherStoppedDownload() [all …]
|
H A D | RpcMethodImpl.h | 572 void gatherBitTorrentMetadata(Dict* btDict, TorrentAttribute* torrentAttrs);
|