summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2014-03-17 15:44:38 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-03-17 15:44:38 (GMT)
commit3b0f408c804304de5f357dad137c817f154b8186 (patch)
treeeb5417ba816de0e7c5f693dbc859f0d42e71b98d
parentf9f4ddde9737ff64182ecdcdf717a3a49a623804 (diff)
update for latest libczmq++ changes.
-rw-r--r--include/obelisk/client/interface.hpp2
-rw-r--r--src/client/interface/interface.cpp2
-rw-r--r--src/worker/worker.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/obelisk/client/interface.hpp b/include/obelisk/client/interface.hpp
index 3f0becd..c150e85 100644
--- a/include/obelisk/client/interface.hpp
+++ b/include/obelisk/client/interface.hpp
@@ -30,7 +30,7 @@ public:
private:
bool setup_socket(
- const std::string& connection, czmqpp::socket socket);
+ const std::string& connection, czmqpp::socket& socket);
void recv_tx();
void recv_block();
diff --git a/src/client/interface/interface.cpp b/src/client/interface/interface.cpp
index 457eafd..607203a 100644
--- a/src/client/interface/interface.cpp
+++ b/src/client/interface/interface.cpp
@@ -23,7 +23,7 @@ subscriber_part::subscriber_part(czmqpp::context& context)
}
bool subscriber_part::setup_socket(
- const std::string& connection, czmqpp::socket socket)
+ const std::string& connection, czmqpp::socket& socket)
{
if (!socket.connect(connection))
{
diff --git a/src/worker/worker.cpp b/src/worker/worker.cpp
index 5a4f3da..0ba8a77 100644
--- a/src/worker/worker.cpp
+++ b/src/worker/worker.cpp
@@ -30,7 +30,7 @@ void send_worker::queue_send(const outgoing_message& message)
int rc = socket.connect("inproc://trigger-send");
BITCOIN_ASSERT(rc == 0);
message.send(socket);
- zsocket_destroy(context_.self(), socket.self());
+ socket.destroy(context_);
}
request_worker::request_worker()