Lines Matching refs:metadata
42 /* don't ask for the same metadata piece more than this often */
54 uint8_t * metadata;
66 tr_free( m->metadata );
81 dbgmsg( tor, "metadata is %d bytes in %d pieces", size, n );
85 m->metadata = tr_new( uint8_t, size );
206 dbgmsg( tor, "got metadata piece %d", piece );
208 /* are we set up to download metadata? */
224 memcpy( m->metadata + offset, data, len );
242 tr_sha1( sha1, m->metadata, m->metadata_size, NULL );
247 const int err = tr_bencLoad( m->metadata, m->metadata_size, &infoDict, NULL );
265 dbgmsg( tor, "Saving completed metadata to \"%s\"", path );
273 tr_torrentSetLocalError( tor, "%s", _( "Magnet torrent's metadata is not usable" ) );
312 dbgmsg( tor, "metadata error; trying again. %d pieces left", n );