| 1976 | } |
| 1977 | |
| 1978 | void 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 | |
| 2000 | void routing_manager_impl::on_remote_subscribe(std::shared_ptr<remote_subscription>& _subscription, |
| 2001 | const remote_subscription_callback_t& _callback) { |
nothing calls this directly
no test coverage detected