Home
last modified time | relevance | path

Searched refs:hints (Results 1 - 25 of 30) sorted by relevance

12

/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/
H A Dcoap_client.c56 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 Dnet_address.cpp119 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 Dnetsys_client.c143 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 Dnet_manager_native.cpp548 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 Ddns_manager_test.cpp77 AddrInfo hints; in HWTEST_F() local
79 dnsManager.GetAddrInfo(hostName, serverName, hints, NET_ID, res); in HWTEST_F()
H A Dnet_manager_native_test.cpp166 AddrInfo hints; in HWTEST_F() local
169 auto ret = instance_->DnsGetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
H A Dnetsys_controller_test.cpp392 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 Dnetsys_native_service_test.cpp458 AddrInfo hints; in HWTEST_F() local
461 int32_t ret = instance_->GetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
H A Dnetsys_controller_service_impl_test.cpp455 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 Ddns_manager.cpp121 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 Ddns_manager.h106 * @param hints limit
111 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
H A Dnet_manager_native.h135 int32_t DnsGetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
/foundation/communication/netmanager_base/test/fuzztest/netsysclient_fuzzer/
H A Dnet_sys_client_fuzzer.cpp393 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 Dnet_http_probe.cpp225 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 Di_netsys_service.h71 virtual int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
H A Dnetsys_native_service_proxy.h37 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
/foundation/communication/netmanager_base/services/netmanagernative/include/
H A Dnetsys_native_service.h61 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 Dnetsys_native_service_stub_test.cpp71 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dnetsys_controller_service_impl.h272 * @param hints Limit parameters when querying
277 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
H A Di_netsys_controller_service.h299 * @param hints Limit parameters when querying
304 virtual int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
H A Dnetsys_controller.h280 * @param hints Limit parameters when querying
285 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
H A Dnetsys_native_client.h312 * @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 Dnetsys_controller.cpp466 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 Dnetsys_controller_service_impl.cpp295 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 Dnetsys_native_service.cpp207 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

Completed in 30 milliseconds

12