MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / is_loopback

Method is_loopback

dds/DCPS/NetworkAddress.cpp:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool NetworkAddress::is_loopback() const
231{
232 if (inet_addr_.in4_.sin_family == AF_INET) {
233 // RFC 3330 defines loopback as any address with 127.x.x.x
234 return (ACE_HTONL(inet_addr_.in4_.sin_addr.s_addr) & 0xFF000000) == 0x7F000000;
235#if defined (ACE_HAS_IPV6)
236 } else if (inet_addr_.in6_.sin6_family == AF_INET6) {
237 return IN6_IS_ADDR_LOOPBACK(&inet_addr_.in6_.sin6_addr);
238#endif
239 }
240 return false;
241}
242
243bool NetworkAddress::is_multicast() const
244{

Callers 13

get_bind_addrFunction · 0.80
is_more_localFunction · 0.80
connect_datalinkMethod · 0.80
accept_datalinkMethod · 0.80
connect_datalinkMethod · 0.80
accept_datalinkMethod · 0.80
release_datalinkMethod · 0.80
unbind_linkMethod · 0.80
set_host_addressesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected