Implemented SinglePoolStrategy.

This commit is contained in:
XMRig 2017-06-29 01:48:23 +03:00
parent bd8776b7ee
commit 25faeabd61
10 changed files with 98 additions and 22 deletions

View file

@ -40,7 +40,9 @@ public:
SinglePoolStrategy(const Url *url, const char *agent, IStrategyListener *listener);
public:
bool isActive() const override;
void connect() override;
void submit(const JobResult &result) override;
protected:
void onClose(Client *client, int failures) override;
@ -48,6 +50,7 @@ protected:
void onLoginSuccess(Client *client) override;
private:
bool m_active;
Client *m_client;
IStrategyListener *m_listener;
};