Merge pull request #736 from Hugne/lookup_domain

zmq: change TIPC default lookup domain when connecting
This commit is contained in:
Richard Newton 2013-11-05 04:39:43 -08:00
commit c2c6ec1907

View File

@ -60,6 +60,10 @@ int zmq::tipc_address_t::resolve (const char *name)
address.addrtype = TIPC_ADDR_NAME; address.addrtype = TIPC_ADDR_NAME;
address.addr.name.name.type = type; address.addr.name.name.type = type;
address.addr.name.name.instance = lower; address.addr.name.name.instance = lower;
/* Since we can't specify lookup domain when connecting
* (and we're not sure that we want it to be configurable)
* Change from 'closest first' approach, to search entire zone */
address.addr.name.domain = tipc_addr(1, 0, 0);
address.scope = 0; address.scope = 0;
return 0; return 0;
} }