Changeset 9544
- Timestamp:
- Nov 22, 2009, 3:57:36 AM (13 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/inout.c
r9495 r9544 102 102 tr_bool fileExists; 103 103 tr_preallocation_mode preallocationMode; 104 104 105 105 fileExists = tr_torrentFindFile2( tor, fileIndex, &base, &subpath ); 106 106 -
trunk/libtransmission/magnet.c
r9531 r9544 57 57 int digit; 58 58 int lookup = in[i] - '0'; 59 59 60 60 /* Skip chars outside the lookup table */ 61 61 if( lookup<0 || lookup>=base32LookupLen ) 62 62 continue; 63 63 64 64 /* If this digit is not in the table, ignore it */ 65 65 digit = base32Lookup[lookup]; … … 81 81 out[offset] |= (digit >> index); 82 82 offset++; 83 83 84 84 if( offset >= outlen ) 85 85 break; -
trunk/libtransmission/magnet.h
r9531 r9544 16 16 #include "transmission.h" 17 17 18 typedef struct 18 typedef struct tr_magnet_info 19 19 { 20 20 uint8_t hash[20]; -
trunk/libtransmission/peer-mgr.c
r9533 r9544 558 558 *** 559 559 *** There are two data structures associated with managing block requests: 560 *** 560 *** 561 561 *** 1. Torrent::requests, an array of "struct block_request" which keeps 562 562 *** track of which blocks have been requested, and when, and by which peers. 563 563 *** This is list is used for (a) cancelling requests that have been pending 564 564 *** for too long and (b) avoiding duplicate requests before endgame. 565 *** 565 *** 566 566 *** 2. Torrent::pieces, an array of "struct weighted_piece" which lists the 567 567 *** pieces that we want to request. It's used to decide which pieces to 568 568 *** return next when tr_peerMgrGetBlockRequests() is called. 569 **/ 569 **/ 570 570 571 571 /** … … 617 617 } 618 618 619 //fprintf( stderr, "sorting requests by %s\n", (mode==REQ_SORTED_BY_BLOCK)?"block":"time" ); 619 //fprintf( stderr, "sorting requests by %s\n", (mode==REQ_SORTED_BY_BLOCK)?"block":"time" ); 620 620 qsort( t->requests, t->requestCount, 621 621 sizeof( struct block_request ), compar ); … … 1400 1400 tr_atomAddrStr( peer->atom ) ); 1401 1401 } 1402 else 1402 else 1403 1403 { 1404 1404 tordbg( t, "unhandled error: %s", tr_strerror( e->err ) ); -
trunk/libtransmission/session.c
r9522 r9544 692 692 --session->waiting; 693 693 694 ///cccc695 //initBlocklist696 // session->rpcServer = tr_rpcInit( session, settings );697 698 699 694 tr_sessionSet( session, &settings ); 700 695 -
trunk/libtransmission/utils-test.c
r9531 r9544 261 261 check( pos == expected_pos[i-1] ) 262 262 check( exact == expected_exact[i-1] ) 263 264 263 } 265 264 -
trunk/libtransmission/webseed.c
r9513 r9544 111 111 if( url[url_len - 1] == '/' && file->name ) 112 112 tr_http_escape( out, file->name, strlen(file->name), 1 ); 113 113 114 114 ret = tr_strndup( EVBUFFER_DATA( out ), EVBUFFER_LENGTH( out ) ); 115 115 evbuffer_free( out );
Note: See TracChangeset
for help on using the changeset viewer.