File: btconfig.h

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 (60 lines) | stat: -rw-r--r-- 1,601 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
50
51
52
53
54
55
56
57
58
59
60
#ifndef BTCONFIG_H
#define BTCONFIG_H

#include <time.h>

extern size_t cfg_req_slice_size;

#define MAX_METAINFO_FILESIZ	(4*1024*1024)
#define DEFAULT_SLICE_SIZE (16*1024)
// According to specs the max slice size is 128K.  While most clients now do
// not accept a value that large, we want max compatibility.
#define cfg_max_slice_size (128*1024)
extern size_t cfg_req_queue_length;
#define MAX_PF_LEN 8
#define PEER_ID_LEN 20
#define PEER_PFX "-CD0303-"

extern char *cfg_user_agent;	// HTTP header

extern size_t cfg_cache_size;

extern size_t cfg_max_peers;
extern size_t cfg_min_peers;

extern unsigned long cfg_listen_ip;
extern int cfg_listen_port;
extern int cfg_max_listen_port;
extern int cfg_min_listen_port;
extern char *cfg_public_ip;

extern time_t cfg_seed_hours;
extern double cfg_seed_ratio;

extern int cfg_max_bandwidth_down;
extern int cfg_max_bandwidth_up;

// arguments global value
extern char *arg_metainfo_file;
extern char *arg_bitfield_file;
extern char *arg_save_as;
extern char *arg_user_agent;	// BT peer ID, not HTTP header

extern unsigned char arg_flg_force_seed_mode;
extern unsigned char arg_flg_check_only;
extern unsigned char arg_flg_exam_only;
extern unsigned char arg_flg_make_torrent;
extern unsigned char arg_flg_private;
extern unsigned char arg_flg_convert_filenames;
extern char *arg_file_to_download;
extern unsigned char arg_verbose;
extern unsigned char arg_allocate;
extern unsigned char arg_daemon;

extern size_t arg_piece_length;
extern char *arg_announce;
extern char *arg_comment;

extern char *arg_ctcs;
extern char *arg_completion_exit;
#endif