| 796 | } |
| 797 | |
| 798 | instance_t endpoint_manager_impl::find_instance(service_t _service, boardnet_endpoint* const _endpoint) const { |
| 799 | instance_t its_instance(0xFFFF); |
| 800 | std::scoped_lock its_lock(endpoint_mutex_); |
| 801 | auto found_service = service_instances_.find(_service); |
| 802 | if (found_service != service_instances_.end()) { |
| 803 | auto found_endpoint = found_service->second.find(_endpoint); |
| 804 | if (found_endpoint != found_service->second.end()) { |
| 805 | its_instance = found_endpoint->second; |
| 806 | } |
| 807 | } |
| 808 | return its_instance; |
| 809 | } |
| 810 | |
| 811 | instance_t endpoint_manager_impl::find_instance_multicast(service_t _service, const boost::asio::ip::address& _sender) const { |
| 812 | instance_t its_instance(0xFFFF); |
no test coverage detected