Changeset 10132
- Timestamp:
- Feb 7, 2010, 7:20:00 PM (13 years ago)
- Location:
- trunk/daemon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/daemon/daemon.c
r10031 r10132 69 69 { 'c', "watch-dir", "Directory to watch for new .torrent files", "c", 1, "<directory>" }, 70 70 { 'C', "no-watch-dir", "Disable the watch-dir", "C", 0, NULL }, 71 { 941, "incomplete-dir", "Where to store new torrents until they're complete", NULL, 1, "<directory>" }, 72 { 942, "no-incomplete-dir", "Don't store incomplete torrents in a different location", NULL, 0, NULL }, 71 73 { 'd', "dump-settings", "Dump the settings and exit", "d", 0, NULL }, 72 74 { 'f', "foreground", "Run in the foreground instead of daemonizing", "f", 0, NULL }, … … 80 82 { 'w', "download-dir", "Where to save downloaded data", "w", 1, "<path>" }, 81 83 { 800, "paused", "Pause all torrents on startup", NULL, 0, NULL }, 84 { 'o', "dht", "Enable distributed hash tables (DHT)", "o", 0, NULL }, 85 { 'O', "no-dht", "Disable distributed hash tables (DHT)", "O", 0, NULL }, 82 86 { 'P', "peerport", "Port for incoming peers (Default: " TR_DEFAULT_PEER_PORT_STR ")", "P", 1, "<port>" }, 83 87 { 'm', "portmap", "Enable portmapping via NAT-PMP or UPnP", "m", 0, NULL }, … … 91 95 { 'I', "bind-address-ipv6", "Where to listen for peer connections", "I", 1, "<ipv6 address>" }, 92 96 { 'r', "rpc-bind-address", "Where to listen for RPC connections", "r", 1, "<ipv4 address>" }, 97 { 953, "global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed until a specific ratio", "gsr", 1, "ratio" }, 98 { 954, "no-global-seedratio", "All torrents, unless overridden by a per-torrent setting, should seed regardless of ratio", "GSR", 0, NULL }, 93 99 { 0, NULL, NULL, NULL, 0, NULL } 94 100 }; … … 312 318 case 'C': tr_bencDictAddBool( &settings, PREF_KEY_DIR_WATCH_ENABLED, FALSE ); 313 319 break; 320 case 941: 321 tr_bencDictAddStr( &settings, TR_PREFS_KEY_INCOMPLETE_DIR, optarg ); 322 tr_bencDictAddBool( &settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, TRUE ); 323 break; 324 case 942: 325 tr_bencDictAddBool( &settings, TR_PREFS_KEY_INCOMPLETE_DIR_ENABLED, FALSE ); 326 break; 314 327 case 'd': dumpSettings = TRUE; 315 328 break; … … 321 334 fprintf(stderr, "Transmission %s\n", LONG_VERSION_STRING); 322 335 exit( 0 ); 336 case 'o': 337 tr_bencDictAddBool( &settings, TR_PREFS_KEY_DHT_ENABLED, TRUE ); 338 break; 339 case 'O': 340 tr_bencDictAddBool( &settings, TR_PREFS_KEY_DHT_ENABLED, FALSE ); 341 break; 323 342 case 'p': tr_bencDictAddInt( &settings, TR_PREFS_KEY_RPC_PORT, atoi( optarg ) ); 324 343 break; … … 360 379 tr_bencDictAddStr( &settings, TR_PREFS_KEY_RPC_BIND_ADDRESS, optarg ); 361 380 break; 381 case 953: 382 tr_bencDictAddReal( &settings, TR_PREFS_KEY_RATIO, atof(optarg) ); 383 tr_bencDictAddBool( &settings, TR_PREFS_KEY_RATIO_ENABLED, TRUE ); 384 break; 385 case 954: 386 tr_bencDictAddBool( &settings, TR_PREFS_KEY_RATIO_ENABLED, FALSE ); 387 break; 362 388 default: showUsage( ); 363 389 break; -
trunk/daemon/transmission-daemon.1
r9122 r10132 61 61 .It Fl et Fl -encryption-tolerated 62 62 Prefer unencrypted peer connections. 63 .It Fl gsr Fl -global-seedratio Ar ratio 64 All torrents, unless overridden by a per-torrent setting, should seed until a specific 65 .Ar ratio 66 .It Fl GSR Fl -no-global-seedratio 67 All torrents, unless overridden by a per-torrent setting, should seed regardless of ratio 63 68 .It Fl h Fl -help 64 69 Print command-line option descriptions. 70 .It Fl -incomplete-dir Ar dir 71 When adding new torrents, store their contents in 72 .Ar directory 73 until the torrent is done. 74 .It Fl -no-incomplete-dir 75 Don't store incomplete torrents in a different directory. 65 76 .It Fl i Fl -bind-address-ipv4 66 77 Listen for IPv4 BitTorrent connections on a specific address. Only one IPv4 listening address is allowed. Default: 0.0.0.0 (All addresses) … … 79 90 .It Fl M Fl -no-portmap 80 91 Disable portmapping 92 .It Fl o Fl -dht 93 Enable distributed hash table (DHT). 94 .It Fl O Fl -no-dht 95 Disable distribued hash table (DHT). 81 96 .It Fl p Fl -port Ar port 82 97 Port to open and listen for RPC requests on. Default: 9091
Note: See TracChangeset
for help on using the changeset viewer.