oss_src/nanosockets/subscribe_socket.cpp
void subscribe_socket::disconnect(std::string objectkey) {
  std::lock_guard<mutex> guard(lock);
  if (publishers.count(objectkey)) {
    nn_shutdown(z_socket, publishers[objectkey]);
    publishers.erase(objectkey);
  }
}
/**
 * Disconnects from a given object key
 */
Disconnects from a given object key
Disconnects from a given object key
void subscribe_socket::disconnect(std::string objectkey) {
  std::lock_guard<mutex> guard(lock);
  if (publishers.count(objectkey)) {
    nn_shutdown(z_socket, publishers[objectkey]);
    publishers.erase(objectkey);
  }
}
void subscribe_socket :: disconnect ( std :: string objectkey ) { std :: lock_guard < mutex > guard ( lock ) ; if ( publishers . count ( objectkey ) ) { nn_shutdown ( z_socket , publishers [ objectkey ] ) ; publishers . erase ( objectkey ) ; } }
Disconnects from a given object key
Disconnects from a given object key