summaryrefslogtreecommitdiffstats
path: root/src/site_comm.h
diff options
context:
space:
mode:
authorErik Andersson <erik@packy.se>2016-11-22 23:56:43 +0100
committerErik Andersson <erik@packy.se>2016-11-22 23:56:43 +0100
commit41954fffc10bfd230f857f57c6871b412d5f2e91 (patch)
tree010bcf28f294a58b4a22b7276cf615758648bcbe /src/site_comm.h
parented374a8dbcdaaf273964293d2805bdd61b148022 (diff)
downloadocelot-master.zip
ocelot-master.tar.gz
ocelot-master.tar.bz2
Ocelot v1.0HEADv1.0master
Diffstat (limited to 'src/site_comm.h')
-rw-r--r--src/site_comm.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/site_comm.h b/src/site_comm.h
index cac511a..798154f 100644
--- a/src/site_comm.h
+++ b/src/site_comm.h
@@ -1,8 +1,5 @@
#ifndef OCELOT_SITE_COMM_H
#define OCELOT_SITE_COMM_H
-#include <iostream>
-#include <istream>
-#include <ostream>
#include <string>
#include <boost/asio.hpp>
#include <queue>
@@ -14,19 +11,24 @@ using boost::asio::ip::tcp;
class site_comm {
private:
- config conf;
+ std::string site_host;
+ std::string site_path;
+ std::string site_password;
std::mutex expire_queue_lock;
std::string expire_token_buffer;
std::queue<std::string> token_queue;
+ bool readonly;
bool t_active;
+ void load_config(config * conf);
+ void do_flush_tokens();
public:
bool verbose_flush;
- site_comm(config &conf);
+ site_comm(config * conf);
+ void reload_config(config * conf);
bool all_clear();
void expire_token(int torrent, int user);
void flush_tokens();
- void do_flush_tokens();
~site_comm();
};
#endif