mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 00:33:33 -05:00
More flexible pools configuration.
This commit is contained in:
@@ -47,15 +47,17 @@ public:
|
||||
ClosingState
|
||||
};
|
||||
|
||||
Client(IClientListener *listener);
|
||||
Client(int id, IClientListener *listener);
|
||||
~Client();
|
||||
|
||||
void connect(const char *host, uint16_t port);
|
||||
void connect();
|
||||
void connect(const Url *url);
|
||||
void disconnect();
|
||||
void login(const char *user, const char *pass, const char *agent);
|
||||
void send(char *data);
|
||||
void setUrl(const Url *url);
|
||||
|
||||
inline int id() const { return m_id; }
|
||||
inline SocketState state() const { return m_state; }
|
||||
|
||||
private:
|
||||
@@ -82,6 +84,7 @@ private:
|
||||
char *m_host;
|
||||
char m_rpcId[64];
|
||||
IClientListener *m_listener;
|
||||
int m_id;
|
||||
int64_t m_retries;
|
||||
int64_t m_sequence;
|
||||
Job m_job;
|
||||
|
||||
Reference in New Issue
Block a user