summaryrefslogtreecommitdiffstats
path: root/xmrstak/net/jpsock.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'xmrstak/net/jpsock.hpp')
-rw-r--r--xmrstak/net/jpsock.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmrstak/net/jpsock.hpp b/xmrstak/net/jpsock.hpp
index 3afcc9b..ad34f6c 100644
--- a/xmrstak/net/jpsock.hpp
+++ b/xmrstak/net/jpsock.hpp
@@ -124,8 +124,8 @@ private:
void jpsock_thread();
bool jpsock_thd_main();
bool process_line(char* line, size_t len);
- bool process_pool_job(const opq_json_val* params);
- bool cmd_ret_wait(const char* sPacket, opq_json_val& poResult);
+ bool process_pool_job(const opq_json_val* params, const uint64_t messageId);
+ bool cmd_ret_wait(const char* sPacket, opq_json_val& poResult, uint64_t& messageId);
char sMinerId[64];
std::atomic<uint64_t> iJobDiff;
@@ -142,5 +142,8 @@ private:
opaque_private* prv;
base_socket* sck;
+
+ uint64_t iMessageCnt = 0;
+ uint64_t iLastMessageId = 0;
};
OpenPOWER on IntegriCloud