Home
last modified time | relevance | path

Searched refs:AddrInfo (Results 1 - 25 of 39) sorted by relevance

12

/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/
H A Ddns_resolv_config.h47 NetManagerStandard::LRUCache<AddrInfo> &GetCache();
58 DelayedTaskWrapper(std::string hostName, NetManagerStandard::LRUCache<AddrInfo> &cache);
67 NetManagerStandard::LRUCache<AddrInfo> &cache_;
78 NetManagerStandard::LRUCache<AddrInfo> cache_;
H A Ddns_manager.h111 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
112 uint16_t netId, std::vector<AddrInfo> &res);
186 int32_t FillAddrInfo(std::vector<AddrInfo> &addrInfo, addrinfo *res);
H A Ddns_quality_diag.h48 uint32_t size, int32_t failreason, QueryParam param, AddrInfo* addrinfo);
95 int32_t ParseReportAddr(uint32_t size, AddrInfo* addrinfo, NetsysNative::NetDnsResultReport &report);
H A Ddns_config_client.h79 struct AddrInfo { struct
H A Ddns_param_cache.h60 void SetDnsCache(uint16_t netId, const std::string &hostName, const AddrInfo &addrInfo);
64 std::vector<AddrInfo> GetDnsCache(uint16_t netId, const std::string &hostName);
H A Dnet_manager_native.h135 int32_t DnsGetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
136 uint16_t netId, std::vector<AddrInfo> &res);
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_dnsresolv_test/
H A Ddns_quality_diag_test.cpp47 struct AddrInfo addrinfoIpv4;
48 struct AddrInfo addrinfoIpv6;
82 struct AddrInfo addrinfo[2] = { addrinfoIpv4, addrinfoIpv6 }; in HWTEST_F()
94 struct AddrInfo addrinfo[MAX_RESULT_SIZE + 1] = { addrinfoIpv4 }; in HWTEST_F()
112 AddrInfo addrinfo; in HWTEST_F()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/
H A Ddns_resolv_listen.cpp150 AddrInfo addrInfo[MAX_RESULTS] = {}; in ProcGetCacheCommand()
152 if (memcpy_s(reinterpret_cast<char *>(&addrInfo[i]), sizeof(AddrInfo), in ProcGetCacheCommand()
153 reinterpret_cast<char *>(&cacheRes[i]), sizeof(AddrInfo)) != 0) { in ProcGetCacheCommand()
157 if (!PollSendData(clientSockFd, reinterpret_cast<char *>(addrInfo), sizeof(AddrInfo) * resNum)) { in ProcGetCacheCommand()
191 AddrInfo addrInfo[MAX_RESULTS] = {}; in ProcSetCacheCommand()
192 if (!PollRecvData(clientSockFd, reinterpret_cast<char *>(addrInfo), sizeof(AddrInfo) * resNum)) { in ProcSetCacheCommand()
272 AddrInfo addrInfo[MAX_RESULTS] = {}; in ProcPostDnsResultCommand()
273 if (!PollRecvData(clientSockFd, reinterpret_cast<char *>(addrInfo), sizeof(AddrInfo) * ai_size)) { in ProcPostDnsResultCommand()
H A Ddns_resolv_config.cpp20 NetManagerStandard::LRUCache<AddrInfo> &cache) in DelayedTaskWrapper()
105 NetManagerStandard::LRUCache<AddrInfo> &DnsResolvConfig::GetCache() in GetCache()
H A Ddns_quality_diag.cpp75 int32_t DnsQualityDiag::ParseReportAddr(uint32_t size, AddrInfo* addrinfo, NetsysNative::NetDnsResultReport &report) in ParseReportAddr()
79 AddrInfo *tmp = &(addrinfo[i]); in ParseReportAddr()
104 char* name, uint32_t size, int32_t failreason, QueryParam queryParam, AddrInfo* addrinfo) in ReportDnsResult()
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnetsys_client.c245 struct AddrInfo addrInfo[static MAX_RESULTS], uint32_t *num) in NetSysGetResolvCacheInternal()
270 if (!PollRecvData(sockFd, (char *)addrInfo, sizeof(struct AddrInfo) * (*num))) { in NetSysGetResolvCacheInternal()
280 struct AddrInfo addrInfo[static MAX_RESULTS], uint32_t *num) in NetSysGetResolvCache()
303 static int32_t FillAddrInfo(struct AddrInfo addrInfo[static MAX_RESULTS], struct addrinfo *res) in FillAddrInfo()
305 if (memset_s(addrInfo, sizeof(struct AddrInfo) * MAX_RESULTS, 0, sizeof(struct AddrInfo) * MAX_RESULTS) != 0) { in FillAddrInfo()
360 struct AddrInfo addrInfo[MAX_RESULTS] = {}; in NetSysSetResolvCacheInternal()
375 if (!PollSendData(sockFd, (char *)addrInfo, sizeof(struct AddrInfo) * resNum)) { in NetSysSetResolvCacheInternal()
443 struct AddrInfo addrInfo[static MAX_RESULTS]) in NetSysPostDnsResultPollSendData()
461 if (!PollSendData(sockFd, (char *)addrInfo, sizeof(struct AddrInfo) * resNu in NetSysPostDnsResultPollSendData()
[all...]
/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/
H A Ddns_manager_test.cpp77 AddrInfo hints; in HWTEST_F()
78 std::vector<AddrInfo> res; in HWTEST_F()
H A Ddns_param_cache_test.cpp69 AddrInfo addrInfo; in HWTEST_F()
92 AddrInfo addrInfo; in HWTEST_F()
171 AddrInfo addrInfo; in HWTEST_F()
H A Ddns_resolv_listen_test.cpp40 typedef int32_t (*GetCache)(uint16_t netId, struct ParamWrapper param, struct AddrInfo addr_info[MAX_RESULTS],
165 struct AddrInfo addr_info[MAX_RESULTS] = {{0}}; in HWTEST_F()
H A Dnet_manager_native_test.cpp166 AddrInfo hints; in HWTEST_F()
168 std::vector<AddrInfo> res; in HWTEST_F()
H A Dresolver_config_test.cpp30 struct AddrInfo addr_info[MAX_RESULTS],
/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()
122 uint16_t netId, std::vector<AddrInfo> &res) in GetAddrInfo()
188 int32_t DnsManager::FillAddrInfo(std::vector<AddrInfo> &addrInfo, addrinfo *res) in FillAddrInfo()
194 AddrInfo info; in FillAddrInfo()
/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,
72 uint16_t netId, std::vector<AddrInfo> &res) = 0;
H A Dnetsys_native_service_proxy.h37 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
38 uint16_t netId, std::vector<AddrInfo> &res) override;
/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,
62 uint16_t netId, std::vector<AddrInfo> &res) override;
/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,
72 uint16_t netId, std::vector<AddrInfo> &res) override
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_http_probe.cpp224 std::vector<AddrInfo> result; in GetAddrInfo()
225 AddrInfo hints = {}; in GetAddrInfo()
/foundation/communication/netmanager_base/services/netsyscontroller/include/
H A Dnetsys_controller_service_impl.h277 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
278 uint16_t netId, std::vector<AddrInfo> &res) override;
H A Di_netsys_controller_service.h304 virtual int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
305 uint16_t netId, std::vector<AddrInfo> &res) = 0;
H A Dnetsys_controller.h285 int32_t GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints,
286 uint16_t netId, std::vector<AddrInfo> &res);

Completed in 14 milliseconds

12