| 261 | } |
| 262 | |
| 263 | bool remote_subscription::get_ip_address(boost::asio::ip::address& _address) const { |
| 264 | if (reliable_) { |
| 265 | _address = reliable_->get_address(); |
| 266 | return true; |
| 267 | } else if (unreliable_) { |
| 268 | _address = unreliable_->get_address(); |
| 269 | return true; |
| 270 | } |
| 271 | return false; |
| 272 | } |
| 273 | |
| 274 | bool remote_subscription::is_expired() const { |
| 275 | return this->final_destination_.load(std::memory_order_acquire) == destiny::expire; |
no test coverage detected