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

Method recreate_socket

implementation/endpoints/src/client_endpoint_impl.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47template<typename Protocol>
48void client_endpoint_impl<Protocol>::recreate_socket() {
49 auto& io = endpoint_impl<Protocol>::io_;
50 auto socket_factory = abstract_socket_factory::get();
51 if constexpr (std::is_same_v<Protocol, boost::asio::ip::tcp>) {
52 socket_ = socket_factory->create_tcp_socket(io);
53 } else if constexpr (std::is_same_v<Protocol, boost::asio::ip::udp>) {
54 socket_ = socket_factory->create_udp_socket(io);
55 }
56}
57
58template<typename Protocol>
59bool client_endpoint_impl<Protocol>::is_client() const {

Callers

nothing calls this directly

Calls 2

create_tcp_socketMethod · 0.45
create_udp_socketMethod · 0.45

Tested by

no test coverage detected