| 335 | }; |
| 336 | |
| 337 | static boost::asio::ip::address tcpAddress(IPAddress const& n) { |
| 338 | if (n.isV6()) { |
| 339 | return boost::asio::ip::address_v6(n.toV6()); |
| 340 | } else { |
| 341 | return boost::asio::ip::address_v4(n.toV4()); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | static IPAddress toIPAddress(boost::asio::ip::address const& addr) { |
| 346 | if (addr.is_v4()) { |
no test coverage detected