Changeset 10702


Ignore:
Timestamp:
May 30, 2010, 2:11:07 PM (12 years ago)
Author:
charles
Message:

(trunk daemon) #3244 "Transmission-remote doesn't have switch(s) to set torrent bandwidth priorities" -- added to trunk for 2.00

Location:
trunk/daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r10646 r10702  
    229229    { 962, "port-test",              "Port testing", "pt", 0, NULL },
    230230    { 'P', "random-port",            "Random port for incomping peers", "P", 0, NULL },
    231     { 900, "priority-high",          "Set the files' priorities as high", "ph", 1, "<files>" },
    232     { 901, "priority-normal",        "Set the files' priorities as normal", "pn", 1, "<files>" },
    233     { 902, "priority-low",           "Set the files' priorities as low", "pl", 1, "<files>" },
     231    { 900, "file-priority-high",     "Set the files' priorities as high", "fh", 1, "<files>" },
     232    { 901, "file-priority-normal",   "Set the files' priorities as normal", "fn", 1, "<files>" },
     233    { 902, "file-priority-low",      "Set the files' priorities as low", "fl", 1, "<files>" },
     234    { 700, "torrent-priority-high",  "Set the current torrent(s)' priorities as high", "th", 0, NULL },
     235    { 701, "torrent-priority-normal","Set the current torrent(s)' priorities as normal", "tn", 0, NULL },
     236    { 702, "torrent-priority-low",   "Set the current torrent(s)' priorities as low", "tl", 0, NULL },
    234237    { 'r', "remove",                 "Remove the current torrent(s)", "r",  0, NULL },
    235238    { 930, "peers",                  "Set the maximum number of peers for the current torrent(s) or globally", "pr", 1, "<max>" },
     
    364367        case 'g': /* get */
    365368        case 'G': /* no-get */
    366         case 900: /* priority-high */
    367         case 901: /* priority-normal */
    368         case 902: /* priority-low */
     369        case 700: /* torrent priority-high */
     370        case 701: /* torrent priority-normal */
     371        case 702: /* torrent priority-low */
     372        case 900: /* file priority-high */
     373        case 901: /* file priority-normal */
     374        case 902: /* file priority-low */
    369375            return MODE_TORRENT_SET | MODE_TORRENT_ADD;
    370376
     
    19431949                case 902: addFiles( args, "priority-low", optarg );
    19441950                          break;
     1951                case 700: tr_bencDictAddInt( args, "bandwidthPriority",  1 );
     1952                           break;
     1953                case 701: tr_bencDictAddInt( args, "bandwidthPriority",  0 );
     1954                           break;
     1955                case 702: tr_bencDictAddInt( args, "bandwidthPriority", -1 );
     1956                           break;
    19451957                default:  assert( "unhandled value" && 0 );
    19461958                          break;
  • trunk/daemon/transmission-remote.1

    r10681 r10702  
    3636.Op Fl o | O
    3737.Op Fl p Ar port
    38 .Op Fl ph Ar files
    39 .Op Fl pl Ar files
    40 .Op Fl pn Ar files
     38.Op Fl th
     39.Op Fl tn
     40.Op Fl tl
     41.Op Fl fh Ar files
     42.Op Fl fl Ar files
     43.Op Fl fn Ar files
    4144.Op Fl pr Ar peers
    4245.Op Fl r
     
    178181.Ar port
    179182for use when listening for incoming peer connections
    180 .It Fl pn Fl -priority-normal Ar all | file-index | files
     183.It Fl tn Fl -torrent-priority-normal
     184Mark the current torrent(s) as normal priority.
     185.It Fl tn Fl -torrent-priority-high
     186Mark the current torrent(s) as high priority.
     187.It Fl tn Fl -torrent-priority-low
     188Mark the current torrent(s) as low priority.
     189.It Fl fn Fl -file-priority-normal Ar all | file-index | files
    181190Mark file(s) as normal priority.
    182191.Ar all
     
    187196sets multiple files' priorities as normal,
    188197such as "\-pn1,3-5" to normalize files #1, #3, #4, and #5.
    189 .It Fl ph Fl -priority-high Ar all | file-index | files
     198.It Fl fh Fl -file-priority-high Ar all | file-index | files
    190199Mark file(s) as high priority.
    191 .It Fl pl Fl -priority-low Ar all | file-index | files
     200.It Fl fl Fl -file-priority-low Ar all | file-index | files
    192201Mark file(s) as low priority.
    193202.It Fl pr Fl -peers Ar number
Note: See TracChangeset for help on using the changeset viewer.