diff options
author | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-14 05:59:00 +0300 |
---|---|---|
committer | Kostyantyn Ovechko <fastinetserver@gmail.com> | 2010-07-14 05:59:00 +0300 |
commit | ff1e371e2342379a2377789b1cda82a21c0eee1f (patch) | |
tree | 893558eda33611b927b03a8c476f4d0398f3b851 /segget/pkg.h | |
parent | Add section [ui_server] to segget.conf file (diff) | |
download | idfetch-ff1e371e2342379a2377789b1cda82a21c0eee1f.tar.gz idfetch-ff1e371e2342379a2377789b1cda82a21c0eee1f.tar.bz2 idfetch-ff1e371e2342379a2377789b1cda82a21c0eee1f.zip |
Add to segget.conf file section [provide_proxy_fetcher_to_others].
NOTE: Proxy-fetcher downloads distfiles requested by other segget daemons.
File will be ignored if it's already downloaded.
TO-DO: Proxy-fetcher needs to check if distfile is already in the download list.
[provide_proxy_fetcher_to_others]
PROVIDE_PROXY_FETCHER_IP
Define an ip address segget will use to provide access for tuiclients.
The parameter should be a string holding your host dotted IP address.
Default:
provide_proxy_fetcher_ip=127.0.0.1
PROVIDE_PROXY_FETCHER_PORT
Define a port segget will use to provide access for tuiclients.
The parameter should be an integer.
Minimum value: 1
Maximum value: 65535
Default:
provide_proxy_fetcher_port=9777
Diffstat (limited to 'segget/pkg.h')
-rw-r--r-- | segget/pkg.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/segget/pkg.h b/segget/pkg.h index 660dde2..480c24f 100644 --- a/segget/pkg.h +++ b/segget/pkg.h @@ -35,18 +35,29 @@ using namespace std; typedef unsigned int uint; +typedef Tdistfile* Pdistfile; class Tpkg{ public: - Tdistfile **Pdistfile_list; + vector<Pdistfile> Pdistfile_list; string name; string category; uint distfile_count; void load_distfile_list(json_object* json_array_distfile_list); - Tpkg(): Pdistfile_list(0),name(""),category(""), distfile_count(0){}; - Tpkg(const Tpkg &L); // copy constructor + Tpkg(): + Pdistfile_list(), + name(""), + category(""), + distfile_count(0) + {}; + Tpkg(const Tpkg &L); // copy constructor Tpkg & operator=(const Tpkg &L); ~Tpkg(); + void push_back_distfile(json_object* json_distfile); void load_pkg_from_json(json_object* json_obj_pkg); }; + +Tpkg **Ppkg_array; +Tpkg proxy_fetcher_pkg; + #endif
\ No newline at end of file |