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

Function expected_kind

dds/DCPS/ConfigStoreImpl.cpp:795–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793namespace {
794
795 bool expected_kind(const NetworkAddress& value,
796 ConfigStoreImpl::NetworkAddressKind kind)
797 {
798 switch (kind) {
799 case ConfigStoreImpl::Kind_ANY:
800 return value.get_type() == AF_INET
801#ifdef ACE_HAS_IPV6
802 || value.get_type() == AF_INET6
803#endif
804 ;
805 case ConfigStoreImpl::Kind_IPV4:
806 return value.get_type() == AF_INET;
807#ifdef ACE_HAS_IPV6
808 case ConfigStoreImpl::Kind_IPV6:
809 return value.get_type() == AF_INET6;
810#endif
811 }
812
813 return false;
814 }
815
816}
817

Callers 2

setMethod · 0.85
getMethod · 0.85

Calls 1

get_typeMethod · 0.45

Tested by

no test coverage detected