Changeset 11518


Ignore:
Timestamp:
Dec 12, 2010, 3:58:06 PM (12 years ago)
Author:
charles
Message:

(trunk daemon) #3580 "feature request: transmission-remote manual update trackers option" -- added.

Location:
trunk/daemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r11517 r11518  
    269269    { 701, "bandwidth-normal",       "Give this torrent bandwidth left over by high priority torrents", "Bn", 0, NULL },
    270270    { 702, "bandwidth-low",          "Give this torrent bandwidth left over by high and normal priority torrents", "Bl", 0, NULL },
     271    { 600, "reannounce",             "Reannounce the current torrent(s)", NULL,  0, NULL },
    271272    { 'r', "remove",                 "Remove the current torrent(s)", "r",  0, NULL },
    272273    { 930, "peers",                  "Set the maximum number of peers for the current torrent(s) or globally", "pr", 1, "<max>" },
     
    450451        case 'v': /* verify */
    451452            return MODE_TORRENT_VERIFY;
     453
     454        case 600: /* reannounce */
     455            return MODE_TORRENT_REANNOUNCE;
    452456
    453457        case 962: /* port-test */
     
    21952199                break;
    21962200            }
     2201            case 600:
     2202            {
     2203                tr_benc * top;
     2204                if( tset != 0 ) { addIdArg( tr_bencDictFind( tset, ARGUMENTS ), id ); status |= flush( host, port, &tset ); }
     2205                top = tr_new0( tr_benc, 1 );
     2206                tr_bencInitDict( top, 2 );
     2207                tr_bencDictAddStr( top, "method", "torrent-reannounce" );
     2208                addIdArg( tr_bencDictAddDict( top, ARGUMENTS, 1 ), id );
     2209                status |= flush( host, port, &top );
     2210                break;
     2211            }
    21972212            case 'v':
    21982213            {
  • trunk/daemon/transmission-remote.1

    r11517 r11518  
    216216.It Fl -remove-and-delete
    217217Remove the current torrent(s) and delete their downloaded data.
     218.It Fl -reannounce
     219Reannounce the current torrent(s).  This is the same as the GUI's "ask tracker for more peers" button.
    218220.It Fl -move
    219221Move the current torrents' data from their current locations to the specified directory.
Note: See TracChangeset for help on using the changeset viewer.