Add classes SinglePoolStrategy, DonateStrategy, IStrategy, IStrategyListener.

This commit is contained in:
XMRig 2017-06-28 06:17:02 +03:00
parent b2d26eb019
commit bd8776b7ee
11 changed files with 414 additions and 108 deletions

View file

@ -69,10 +69,10 @@ Url::Url(const char *url) :
Url::Url(const char *host, uint16_t port, const char *user, const char *password, bool keepAlive, bool nicehash) :
m_keepAlive(false),
m_nicehash(false),
m_password(nullptr),
m_user(nullptr),
m_keepAlive(keepAlive),
m_nicehash(nicehash),
m_password(password ? strdup(password) : nullptr),
m_user(user ? strdup(user) : nullptr),
m_port(port)
{
m_host = strdup(host);