MCPcopy Create free account
hub / github.com/COVESA/vsomeip / find_server_endpoint

Method find_server_endpoint

implementation/endpoints/src/endpoint_manager_impl.cpp:331–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331std::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
344std::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,

Callers 4

send_toMethod · 0.80
send_via_sdMethod · 0.80
send_errorMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected