| 329 | } |
| 330 | |
| 331 | std::shared_ptr<boardnet_endpoint> endpoint_manager_impl::find_server_endpoint(uint16_t _port, bool _reliable) const { |
| 332 | std::shared_ptr<boardnet_endpoint> its_endpoint; |
| 333 | std::scoped_lock its_lock(endpoint_mutex_); |
| 334 | auto found_port = server_endpoints_.find(_port); |
| 335 | if (found_port != server_endpoints_.end()) { |
| 336 | auto found_endpoint = found_port->second.find(_reliable); |
| 337 | if (found_endpoint != found_port->second.end()) { |
| 338 | its_endpoint = found_endpoint->second; |
| 339 | } |
| 340 | } |
| 341 | return its_endpoint; |
| 342 | } |
| 343 | |
| 344 | std::shared_ptr<boardnet_endpoint> endpoint_manager_impl::find_or_create_server_endpoint(uint16_t _port, bool _reliable, bool _start, |
| 345 | service_t _service, instance_t _instance, |
no test coverage detected