Changeset 7733
- Timestamp:
- Jan 17, 2009, 2:58:51 PM (12 years ago)
- Location:
- branches/1.5x
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5x/daemon/remote.c
r7704 r7733 59 59 static tr_option opts[] = 60 60 { 61 { 'a', "add", "Add torrent files", 62 "a", 0, NULL }, 63 { 'b', "debug", "Print debugging information", 64 "b", 0, NULL }, 65 { 'd', "downlimit", "Set the maximum global download speed in KB/s", 66 "d", 1, "<speed>" }, 67 { 'D', "no-downlimit", "Don't limit the global download speed", 68 "D", 0, NULL }, 69 { 910, "encryption-required", "Encrypt all peer connections", 70 "er", 0, NULL }, 71 { 911, "encryption-preferred", "Prefer encrypted peer connections", 72 "ep", 0, NULL }, 73 { 912, "encryption-tolerated", "Prefer unencrypted peer connections", 74 "et", 0, NULL }, 75 { 'f', "files", "List the current torrent's files", 76 "f", 0, NULL }, 77 { 'g', "get", "Mark files for download", 78 "g", 1, "<files>" }, 79 { 'G', "no-get", "Mark files for not downloading", 80 "G", 1, "<files>" }, 81 { 'i', "info", "Show details of the current torrent(s)", 82 "i", 0, NULL }, 83 { 'l', "list", "List all torrents", 84 "l", 0, NULL }, 85 { 'm', "portmap", "Enable portmapping via NAT-PMP or UPnP", 86 "m", 0, NULL }, 87 { 'M', "no-portmap", "Disable portmapping", 88 "M", 0, NULL }, 89 { 'n', "auth", "Set authentication info", 90 "n", 1, "<username:password>" }, 91 { 'p', "port", 92 "Port for incoming peers (Default: " TR_DEFAULT_PEER_PORT_STR ")", 93 "p", 1, "<port>" }, 94 { 900, "priority-high", "Set the files' priorities as high", 95 "ph", 1, "<files>" }, 96 { 901, "priority-normal", "Set the files' priorities as normal", 97 "pn", 1, "<files>" }, 98 { 902, "priority-low", "Set the files' priorities as low", 99 "pl", 1, "<files>" }, 100 { 'r', "remove", "Remove the current torrent(s)", 101 "r", 0, NULL }, 102 { 'R', "remove-and-delete", "Remove the current torrent(s) and delete local data", 103 NULL, 0, NULL }, 104 { 's', "start", "Start the current torrent(s)", 105 "s", 0, NULL }, 106 { 'S', "stop", "Stop the current torrent(s)", 107 "S", 0, NULL }, 108 { 't', "torrent", "Set the current torrent(s)", 109 "t", 1, "<torrent>" }, 110 { 'u', "uplimit", "Set the maximum global upload speed in KB/s", 111 "u", 1, "<speed>" }, 112 { 'U', "no-uplimit", "Don't limit the global upload speed", 113 "U", 0, NULL }, 114 { 'v', "verify", "Verify the current torrent(s)", 115 "v", 0, NULL }, 116 { 'w', "download-dir", "Set the default download folder", 117 "w", 1, "<path>" }, 118 { 'x', "pex", "Enable peer exchange (PEX)", 119 "x", 0, NULL }, 120 { 'X', "no-pex", "Disable peer exchange (PEX)", 121 "X", 0, NULL }, 122 { 'z', "peers", "List the current torrent's peers", 123 "z", 0, NULL }, 124 { 0, NULL, NULL, 125 NULL, 0, NULL } 61 { 'a', "add", "Add torrent files", "a", 0, NULL }, 62 { 'b', "debug", "Print debugging information", "b", 0, NULL }, 63 { 'd', "downlimit", "Set the maximum global download speed in KB/s", "d", 1, "<speed>" }, 64 { 'D', "no-downlimit", "Don't limit the global download speed", "D", 0, NULL }, 65 { 910, "encryption-required", "Encrypt all peer connections", "er", 0, NULL }, 66 { 911, "encryption-preferred", "Prefer encrypted peer connections", "ep", 0, NULL }, 67 { 912, "encryption-tolerated", "Prefer unencrypted peer connections", "et", 0, NULL }, 68 { 'f', "files", "List the current torrent's files", "f", 0, NULL }, 69 { 'g', "get", "Mark files for download", "g", 1, "<files>" }, 70 { 'G', "no-get", "Mark files for not downloading", "G", 1, "<files>" }, 71 { 'i', "info", "Show details of the current torrent(s)", "i", 0, NULL }, 72 { 'l', "list", "List all torrents", "l", 0, NULL }, 73 { 'm', "portmap", "Enable portmapping via NAT-PMP or UPnP", "m", 0, NULL }, 74 { 'M', "no-portmap", "Disable portmapping", "M", 0, NULL }, 75 { 'n', "auth", "Set authentication info", "n", 1, "<username:password>" }, 76 { 'p', "port", "Port for incoming peers (Default: " TR_DEFAULT_PEER_PORT_STR ")", "p", 1, "<port>" }, 77 { 900, "priority-high", "Set the files' priorities as high", "ph", 1, "<files>" }, 78 { 901, "priority-normal", "Set the files' priorities as normal", "pn", 1, "<files>" }, 79 { 902, "priority-low", "Set the files' priorities as low", "pl", 1, "<files>" }, 80 { 'r', "remove", "Remove the current torrent(s)", "r", 0, NULL }, 81 { 'R', "remove-and-delete", "Remove the current torrent(s) and delete local data", NULL, 0, NULL }, 82 { 's', "start", "Start the current torrent(s)", "s", 0, NULL }, 83 { 'S', "stop", "Stop the current torrent(s)", "S", 0, NULL }, 84 { 't', "torrent", "Set the current torrent(s)", "t", 1, "<torrent>" }, 85 { 'u', "uplimit", "Set the maximum global upload speed in KB/s", "u", 1, "<speed>" }, 86 { 'U', "no-uplimit", "Don't limit the global upload speed", "U", 0, NULL }, 87 { 'v', "verify", "Verify the current torrent(s)", "v", 0, NULL }, 88 { 'w', "download-dir", "Set the default download folder", "w", 1, "<path>" }, 89 { 'x', "pex", "Enable peer exchange (PEX)", "x", 0, NULL }, 90 { 'X', "no-pex", "Disable peer exchange (PEX)", "X", 0, NULL }, 91 { 'z', "peers", "List the current torrent's peers", "z", 0, NULL }, 92 { 0, NULL, NULL, NULL, 0, NULL } 126 93 }; 127 94 … … 235 202 236 203 static const char * files_keys[] = { 237 "files", "name", "priorities", "wanted" 204 "files", 205 "name", 206 "priorities", 207 "wanted" 238 208 }; 239 209 240 210 static const char * details_keys[] = { 241 "activityDate", "addedDate", "announceResponse", 211 "activityDate", 212 "addedDate", 213 "announceResponse", 242 214 "announceURL", 243 "comment", "corruptEver", "creator", 244 "dateCreated", "doneDate", 245 "downloadedEver", "errorString", "eta", 246 "hashString", "haveUnchecked", 247 "haveValid", "id", "isPrivate", 248 "lastAnnounceTime", "lastScrapeTime", 249 "leechers", "leftUntilDone", "name", 250 "nextAnnounceTime", "nextScrapeTime", 251 "peersConnected", "peersGettingFromUs", "peersSendingToUs", 252 "pieceCount", "pieceSize", "rateDownload", 253 "rateUpload", "recheckProgress", 254 "scrapeResponse", "seeders", 255 "sizeWhenDone", "startDate", 256 "status", "timesCompleted", "totalSize", 215 "comment", 216 "corruptEver", 217 "creator", 218 "dateCreated", 219 "doneDate", 220 "downloadDir", 221 "downloadedEver", 222 "errorString", 223 "eta", 224 "hashString", 225 "haveUnchecked", 226 "haveValid", 227 "id", 228 "isPrivate", 229 "lastAnnounceTime", 230 "lastScrapeTime", 231 "leechers", 232 "leftUntilDone", 233 "name", 234 "nextAnnounceTime", 235 "nextScrapeTime", 236 "peersConnected", 237 "peersGettingFromUs", 238 "peersSendingToUs", 239 "pieceCount", 240 "pieceSize", 241 "rateDownload", 242 "rateUpload", 243 "recheckProgress", 244 "scrapeResponse", 245 "seeders", 246 "sizeWhenDone", 247 "startDate", 248 "status", 249 "timesCompleted", 250 "totalSize", 257 251 "uploadedEver", 258 "webseeds", "webseedsSendingToUs" 252 "webseeds", 253 "webseedsSendingToUs" 259 254 }; 260 255 … … 753 748 getStatusString( t, buf, sizeof( buf ) ); 754 749 printf( " State: %s\n", buf ); 750 751 if( tr_bencDictFindStr( t, "downloadDir", &str ) ) 752 printf( " Location: %s\n", str ); 755 753 756 754 if( tr_bencDictFindInt( t, "sizeWhenDone", &i ) -
branches/1.5x/doc/rpc-spec.txt
r7714 r7733 132 132 desiredAvailable | number | tr_stat 133 133 doneDate | number | tr_stat 134 downloadDir | string | tr_torrent 134 135 downloadedEver | number | tr_stat 135 136 downloaders | number | tr_stat … … 382 383 4 | 1.50 | yes | session-get | new arg "rpc-version" 383 384 | | | session-get | new arg "rpc-version-minimum" 384 ------+---------+-----------+----------------+------------------------------- 385 385 | | | torrent-get | new arg "downloadDir" 386 ------+---------+-----------+----------------+------------------------------- 387 -
branches/1.5x/libtransmission/rpcimpl.c
r7722 r7733 294 294 else if( !strcmp( key, "doneDate" ) ) 295 295 tr_bencDictAddInt( d, key, st->doneDate ); 296 else if( !strcmp( key, "downloadDir" ) ) 297 tr_bencDictAddStr( d, key, tr_torrentGetDownloadDir( tor ) ); 296 298 else if( !strcmp( key, "downloadedEver" ) ) 297 299 tr_bencDictAddInt( d, key, st->downloadedEver );
Note: See TracChangeset
for help on using the changeset viewer.