problem: zeromq doesn't has a thread-safe peer to peer socket

Solution: a new socket type, called PEER. Very similar to SERVER, but can only connect to other PEERs. Also a new zmq_connect_peer method, that connect and return a routing-id in thread-safe and atomic operation
This commit is contained in:
Doron Somech
2020-02-09 22:04:56 +02:00
parent 05194eb549
commit 70bc7dd925
18 changed files with 447 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ class msg_t;
class pipe_t;
// TODO: This class uses O(n) scheduling. Rewrite it to use O(1) algorithm.
class server_t ZMQ_FINAL : public socket_base_t
class server_t : public socket_base_t
{
public:
server_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);