Changeset 7859 for branches/1.5x/daemon/remote.c
- Timestamp:
- Feb 9, 2009, 7:37:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/daemon/remote.c
r7857 r7859 68 68 { 911, "encryption-preferred", "Prefer encrypted peer connections", "ep", 0, NULL }, 69 69 { 912, "encryption-tolerated", "Prefer unencrypted peer connections", "et", 0, NULL }, 70 { 'f', "files", "List the current torrent 'sfiles", "f", 0, NULL },70 { 'f', "files", "List the current torrent(s)' files", "f", 0, NULL }, 71 71 { 'g', "get", "Mark files for download", "g", 1, "<files>" }, 72 72 { 'G', "no-get", "Mark files for not downloading", "G", 1, "<files>" }, 73 { 'i', "info", "Show details of the current torrent(s)", "i", 0, NULL }, 73 { 'i', "info", "Show the current torrent(s)' details", "i", 0, NULL }, 74 { 920, "session-info", "Show the session's details", "si", 0, NULL }, 74 75 { 'l', "list", "List all torrents", "l", 0, NULL }, 75 76 { 'm', "portmap", "Enable portmapping via NAT-PMP or UPnP", "m", 0, NULL }, … … 81 82 { 902, "priority-low", "Set the files' priorities as low", "pl", 1, "<files>" }, 82 83 { 'r', "remove", "Remove the current torrent(s)", "r", 0, NULL }, 84 { 930, "peers", "Set the current torrent(s)' maximum number of peers each", "pr", 1, "<max>" }, 85 { 931, "global-peers", "Set the global maximum number of peers", "gpr", 1, "<max>" }, 83 86 { 'R', "remove-and-delete", "Remove the current torrent(s) and delete local data", NULL, 0, NULL }, 84 { 920, "session", "Print session information", NULL, 0, NULL },85 87 { 's', "start", "Start the current torrent(s)", "s", 0, NULL }, 86 88 { 'S', "stop", "Stop the current torrent(s)", "S", 0, NULL }, … … 93 95 { 'x', "pex", "Enable peer exchange (PEX)", "x", 0, NULL }, 94 96 { 'X', "no-pex", "Disable peer exchange (PEX)", "X", 0, NULL }, 95 { 'z', "peers", "List the current torrent's peers", "z", 0, NULL },97 { 940, "peer-info", "List the current torrent(s)' peers", "pi", 0, NULL }, 96 98 { 0, NULL, NULL, NULL, 0, NULL } 97 99 }; … … 468 470 break; 469 471 470 case 'z':471 tr_bencDictAddStr( &top, "method", "torrent-get" );472 tr_bencDictAddInt( &top, "tag", TAG_PEERS );473 addIdArg( args, id );474 fields = tr_bencDictAddList( args, "fields", 1 );475 tr_bencListAddStr( fields, "peers" );476 break;477 478 472 case 900: 479 473 tr_bencDictAddStr( &top, "method", "torrent-set" ); … … 512 506 tr_bencDictAddStr( &top, "method", "session-get" ); 513 507 tr_bencDictAddInt( &top, "tag", TAG_SESSION ); 508 break; 509 510 case 930: 511 tr_bencDictAddStr( &top, "method", "torrent-set" ); 512 addIdArg( args, id ); 513 tr_bencDictAddInt( args, "peer-limit", atoi(optarg) ); 514 break; 515 516 case 931: 517 tr_bencDictAddStr( &top, "method", "session-set" ); 518 tr_bencDictAddInt( args, "peer-limit", atoi(optarg) ); 519 break; 520 521 case 940: 522 tr_bencDictAddStr( &top, "method", "torrent-get" ); 523 tr_bencDictAddInt( &top, "tag", TAG_PEERS ); 524 addIdArg( args, id ); 525 fields = tr_bencDictAddList( args, "fields", 1 ); 526 tr_bencListAddStr( fields, "peers" ); 514 527 break; 515 528
Note: See TracChangeset
for help on using the changeset viewer.