Problem: Property names are duplicated at several places

Solution: Define them in zmq.h and use them (currently in DRAFT API)
This commit is contained in:
Simon Giesecke
2017-08-04 10:33:51 +02:00
parent c191909c0e
commit 9949965717
10 changed files with 42 additions and 20 deletions

View File

@@ -1023,7 +1023,8 @@ void zmq::stream_engine_t::set_handshake_timer ()
bool zmq::stream_engine_t::init_properties (properties_t & properties) {
if (peer_address.empty()) return false;
properties.insert (std::make_pair("Peer-Address", peer_address));
properties.insert (
std::make_pair (ZMQ_MSG_PROPERTY_PEER_ADDRESS, peer_address));
// Private property to support deprecated SRCFD
std::ostringstream stream;