MCPcopy Create free account
hub / github.com/apple/foundationdb / tcpAddress

Function tcpAddress

flow/Net2.actor.cpp:337–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335};
336
337static 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
345static IPAddress toIPAddress(boost::asio::ip::address const& addr) {
346 if (addr.is_v4()) {

Callers 3

tcpEndpointFunction · 0.85
udpEndpointFunction · 0.85
isAddressOnThisHostMethod · 0.85

Calls 2

toV4Method · 0.80
isV6Method · 0.45

Tested by

no test coverage detected