/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
H A D | coap_client.c | 56 struct addrinfo hints; in CoapResolveAddress() local 75 (void)memset_s((char *)&hints, sizeof(hints), 0, sizeof(hints)); in CoapResolveAddress() 76 hints.ai_socktype = SOCK_DGRAM; in CoapResolveAddress() 77 hints.ai_family = AF_UNSPEC; in CoapResolveAddress() 79 int32_t error = getaddrinfo(addrstr, NULL, &hints, &res); in CoapResolveAddress() 148 static void InitAddrinfo(struct addrinfo *hints) in InitAddrinfo() argument 150 if (hints == NULL) { in InitAddrinfo() 153 (void)memset_s(hints, sizeo in InitAddrinfo() 162 struct addrinfo hints; CoapGetContextEx() local 296 struct addrinfo hints; CoapGetSessionEx() local [all...] |
/foundation/communication/netstack/frameworks/js/napi/socket/options/src/ |
H A D | net_address.cpp | 119 struct addrinfo hints; in SetAddress() local 121 if (memset_s(&hints, sizeof hints, 0, sizeof hints) != EOK) { in SetAddress() 124 hints.ai_family = saFamily; in SetAddress() 127 int status = getaddrinfo(address.c_str(), nullptr, &hints, &res); in SetAddress()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_client.c | 143 static bool MakeKey(const char *hostName, const char *serv, const struct addrinfo *hints, in MakeKey() argument 146 if (serv && hints) { in MakeKey() 147 return sprintf_s(key, MAX_KEY_LENGTH, "%s %s %d %d %d %d", hostName, serv, hints->ai_family, hints->ai_flags, in MakeKey() 148 hints->ai_protocol, hints->ai_socktype) > 0; in MakeKey() 151 if (hints) { in MakeKey() 152 return sprintf_s(key, MAX_KEY_LENGTH, "%s %d %d %d %d", hostName, hints->ai_family, hints->ai_flags, in MakeKey() 153 hints in MakeKey() [all...] |
H A D | net_manager_native.cpp | 548 const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) in DnsGetAddrInfo() 550 return dnsManager_->GetAddrInfo(hostName, serverName, hints, netId, res); in DnsGetAddrInfo() 547 DnsGetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) DnsGetAddrInfo() argument
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | dns_manager_test.cpp | 77 AddrInfo hints; in HWTEST_F() local 79 dnsManager.GetAddrInfo(hostName, serverName, hints, NET_ID, res); in HWTEST_F()
|
H A D | net_manager_native_test.cpp | 166 AddrInfo hints; in HWTEST_F() local 169 auto ret = instance_->DnsGetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
|
H A D | netsys_controller_test.cpp | 392 AddrInfo hints; in HWTEST_F() local 396 ret = NetsysController::GetInstance().GetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F() 509 AddrInfo hints = {0}; in HWTEST_F() local 548 ret = instance_->GetAddrInfo(iface, iface, hints, 0, res); in HWTEST_F()
|
H A D | netsys_native_service_test.cpp | 458 AddrInfo hints; in HWTEST_F() local 461 int32_t ret = instance_->GetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
|
H A D | netsys_controller_service_impl_test.cpp | 455 AddrInfo hints = {}; in HWTEST_F() local 457 ret = instance_->GetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | dns_manager.cpp | 121 int32_t DnsManager::GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, in GetAddrInfo() argument 139 hint.ai_family = hints.aiFamily; in GetAddrInfo() 140 hint.ai_flags = hints.aiFlags; in GetAddrInfo() 141 hint.ai_protocol = hints.aiProtocol; in GetAddrInfo() 142 hint.ai_socktype = hints.aiSockType; in GetAddrInfo()
|
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | dns_manager.h | 106 * @param hints limit 111 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
H A D | net_manager_native.h | 135 int32_t DnsGetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
/foundation/communication/netmanager_base/test/fuzztest/netsysclient_fuzzer/ |
H A D | net_sys_client_fuzzer.cpp | 393 AddrInfo hints; in GetAddrInfoFuzzTest() local 394 hints.aiFlags = NetSysGetData<uint32_t>(); in GetAddrInfoFuzzTest() 395 hints.aiFamily = NetSysGetData<uint32_t>(); in GetAddrInfoFuzzTest() 396 hints.aiSockType = NetSysGetData<uint32_t>(); in GetAddrInfoFuzzTest() 397 hints.aiProtocol = NetSysGetData<uint32_t>(); in GetAddrInfoFuzzTest() 398 hints.aiAddrLen = NetSysGetData<uint32_t>(); in GetAddrInfoFuzzTest() 401 if (memcpy_s(hints.aiCanonName, sizeof(hints.aiCanonName), aiCanName.c_str(), aiCanName.length()) != 0) { in GetAddrInfoFuzzTest() 408 dataParcel.WriteRawData(&hints, sizeof(AddrInfo)); in GetAddrInfoFuzzTest()
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_http_probe.cpp | 225 AddrInfo hints = {}; in GetAddrInfo() local 227 if (NetsysController::GetInstance().GetAddrInfo(domain, serverName, hints, netId_, result) < 0) { in GetAddrInfo()
|
/foundation/communication/netmanager_base/interfaces/innerkits/netmanagernative/include/ |
H A D | i_netsys_service.h | 71 virtual int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
H A D | netsys_native_service_proxy.h | 37 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
/foundation/communication/netmanager_base/services/netmanagernative/include/ |
H A D | netsys_native_service.h | 61 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_distributed_test/ |
H A D | netsys_native_service_stub_test.cpp | 71 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
/foundation/communication/netmanager_base/services/netsyscontroller/include/ |
H A D | netsys_controller_service_impl.h | 272 * @param hints Limit parameters when querying 277 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
H A D | i_netsys_controller_service.h | 299 * @param hints Limit parameters when querying 304 virtual int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
H A D | netsys_controller.h | 280 * @param hints Limit parameters when querying 285 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
H A D | netsys_native_client.h | 312 * @param hints Limit parameters when querying 317 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
|
/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | netsys_controller.cpp | 466 int32_t NetsysController::GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, in GetAddrInfo() argument 475 return netsysService_->GetAddrInfo(hostName, serverName, hints, netId, res); in GetAddrInfo()
|
H A D | netsys_controller_service_impl.cpp | 295 const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() 297 return netsysClient_.GetAddrInfo(hostName, serverName, hints, netId, res); in GetAddrInfo() 294 GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) GetAddrInfo() argument
|
/foundation/communication/netmanager_base/services/netmanagernative/src/ |
H A D | netsys_native_service.cpp | 207 const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo() 209 return netsysService_->DnsGetAddrInfo(hostName, serverName, hints, netId, res); in GetAddrInfo() 206 GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, uint16_t netId, std::vector<AddrInfo> &res) GetAddrInfo() argument
|