File: btconfig.cpp

package info (click to toggle)
ctorrent 1.3.4.dnh3.3.2-5
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,240 kB
  • sloc: cpp: 13,161; sh: 675; ansic: 383; makefile: 6
file content (49 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <sys/types.h>
#include "btconfig.h"

size_t cfg_req_slice_size = DEFAULT_SLICE_SIZE;
size_t cfg_req_queue_length = 74;

size_t cfg_cache_size = 16;

size_t cfg_max_peers = 100;
size_t cfg_min_peers = 1;

unsigned long cfg_listen_ip = 0;
int cfg_listen_port = 0;
int cfg_max_listen_port = 2706;
int cfg_min_listen_port = 2106;
char *cfg_public_ip = (char *) 0;

int cfg_max_bandwidth_down = 0;
int cfg_max_bandwidth_up = 0;

time_t cfg_seed_hours = 72;
double cfg_seed_ratio = 0;

// arguments global value
char *arg_metainfo_file = (char*) 0;
char *arg_bitfield_file = (char*) 0;
char *arg_save_as = (char*) 0;
char *arg_user_agent = (char*) 0;

unsigned char arg_flg_force_seed_mode = 0;
unsigned char arg_flg_check_only = 0;
unsigned char arg_flg_exam_only = 0;
unsigned char arg_flg_make_torrent = 0;
unsigned char arg_flg_private = 0;
unsigned char arg_flg_convert_filenames = 0;
char *arg_file_to_download = (char *)0;
unsigned char arg_verbose = 0;
unsigned char arg_allocate = 0;
unsigned char arg_daemon = 0;

size_t arg_piece_length = 262144;
char *arg_announce = (char*) 0;
char *arg_comment = (char*) 0;

char *arg_ctcs = (char*) 0;
char *arg_completion_exit = (char*) 0;

char *cfg_user_agent = (char*) 0;