mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-09 23:57:50 +01:00
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:
@@ -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 &);
|
||||
|
||||
Reference in New Issue
Block a user