Support addressing TIPC Port Identity

ZeroMQ currently supports location independent addressing using TIPC
Port Names with tipc://{type,instance}. This commits adds support for
connecting and binding using TIPC Port Identity addresses. To connect
using Port Identities the expected format is tipc://<Z.C.N:Ref>, e.g.
"tipc://<1.2.3:123123>". To bind using TIPC Port Identities the expected
format is "tipc://<*>".
This commit is contained in:
Pontus Sköldström
2018-02-19 17:34:40 +01:00
parent 4c7c9b87bf
commit 78aa9b1983
4 changed files with 93 additions and 10 deletions

View File

@@ -54,10 +54,16 @@ class tipc_address_t
// The opposite to resolve()
int to_string (std::string &addr_);
// Handling different TIPC address types
bool is_service () const;
bool is_random () const;
void set_random ();
const sockaddr *addr () const;
socklen_t addrlen () const;
private:
bool _random;
struct sockaddr_tipc address;
tipc_address_t (const tipc_address_t &);