More flexible pools configuration.

This commit is contained in:
XMRig 2017-06-07 02:46:52 +03:00
parent 4c06d8b080
commit b8cc1136a4
8 changed files with 83 additions and 40 deletions

View file

@ -25,10 +25,14 @@
#define __NETWORK_H__
#include <vector>
#include "interfaces/IClientListener.h"
class Options;
class Url;
class Network : public IClientListener
@ -47,11 +51,13 @@ protected:
void onLoginSuccess(Client *client) override;
private:
void addPool(const Url *url);
bool m_donate;
char *m_agent;
Client *m_backupPool;
Client *m_donatePool;
Client *m_pool;
const Options *m_options;
int m_pool;
std::vector<Client*> m_pools;
};