Problem: stream listeners do not provide correct local and remote address information (test_monitor is failing)

Solution: query local and remote addresses on accepting a connection
This commit is contained in:
Simon Giesecke
2019-02-02 16:36:32 +01:00
parent 8f90f579f5
commit 54240dccbb
8 changed files with 21 additions and 13 deletions

View File

@@ -152,9 +152,11 @@ void zmq::ipc_listener_t::in_event ()
create_engine (fd);
}
std::string zmq::ipc_listener_t::get_local_socket_name (zmq::fd_t fd_) const
std::string
zmq::ipc_listener_t::get_socket_name (zmq::fd_t fd_,
socket_end_t socket_end_) const
{
return zmq::get_socket_name<ipc_address_t> (fd_, socket_end_local);
return zmq::get_socket_name<ipc_address_t> (fd_, socket_end_);
}
int zmq::ipc_listener_t::set_local_address (const char *addr_)