| 46 | |
| 47 | template<typename Protocol> |
| 48 | void 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 | |
| 58 | template<typename Protocol> |
| 59 | bool client_endpoint_impl<Protocol>::is_client() const { |
nothing calls this directly
no test coverage detected