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

Method init_routing_info

implementation/routing/src/routing_manager_impl.cpp:1978–1998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976}
1977
1978void routing_manager_impl::init_routing_info() {
1979 VSOMEIP_INFO << "Service Discovery disabled. Using static routing information.";
1980 for (auto i : configuration_->get_remote_services()) {
1981 boost::asio::ip::address its_address(boost::asio::ip::make_address(configuration_->get_unicast_address(i.first, i.second)));
1982 uint16_t its_reliable_port = configuration_->get_reliable_port(i.first, i.second);
1983 uint16_t its_unreliable_port = configuration_->get_unreliable_port(i.first, i.second);
1984
1985 if (its_reliable_port != ILLEGAL_PORT || its_unreliable_port != ILLEGAL_PORT) {
1986
1987 add_routing_info(i.first, i.second, DEFAULT_MAJOR, DEFAULT_MINOR, DEFAULT_TTL, its_address, its_reliable_port, its_address,
1988 its_unreliable_port);
1989
1990 if (its_reliable_port != ILLEGAL_PORT) {
1991 ep_mgr_impl_->find_or_create_remote_client(i.first, i.second, true);
1992 }
1993 if (its_unreliable_port != ILLEGAL_PORT) {
1994 ep_mgr_impl_->find_or_create_remote_client(i.first, i.second, false);
1995 }
1996 }
1997 }
1998}
1999
2000void routing_manager_impl::on_remote_subscribe(std::shared_ptr<remote_subscription>& _subscription,
2001 const remote_subscription_callback_t& _callback) {

Callers

nothing calls this directly

Calls 5

get_remote_servicesMethod · 0.80
get_unicast_addressMethod · 0.80
get_reliable_portMethod · 0.80
get_unreliable_portMethod · 0.80

Tested by

no test coverage detected