Home
last modified time | relevance | path

Searched refs:netHandleList (Results 1 - 5 of 5) sorted by relevance

/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnative_net_conn_test.cpp305 OH_NetConn_NetHandleList netHandleList = OH_NetConn_NetHandleList(); in HWTEST_F() local
306 int32_t ret = OH_NetConn_GetAllNets(&netHandleList); in HWTEST_F()
307 for (int32_t i = 0; i < netHandleList.netHandleListSize; i++) { in HWTEST_F()
308 std::cout << " netId: " << netHandleList.netHandleList[i].netId << std::endl; in HWTEST_F()
321 OH_NetConn_NetHandleList *netHandleList = nullptr; in HWTEST_F() local
322 int32_t ret = OH_NetConn_GetAllNets(netHandleList); in HWTEST_F()
341 OH_NetConn_NetHandleList netHandleList; in HWTEST_F() local
342 ret = OH_NetConn_GetAllNets(&netHandleList); in HWTEST_F()
/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/include/
H A Dnet_connection.h169 * @param netHandleList Network handle that stores the network ID list.
178 int32_t OH_NetConn_GetAllNets(NetConn_NetHandleList *netHandleList);
H A Dnet_connection_adapter.h35 int32_t Conv2NetHandleList(const std::list<sptr<NetHandle>> &netHandleObjList, NetConn_NetHandleList *netHandleList);
/foundation/communication/netmanager_base/interfaces/kits/c/netconnclient/src/
H A Dnet_connection.cpp98 int32_t OH_NetConn_GetAllNets(NetConn_NetHandleList *netHandleList) in OH_NetConn_GetAllNets() argument
100 if (netHandleList == nullptr) { in OH_NetConn_GetAllNets()
107 int32_t retConv = Conv2NetHandleList(netHandleObjList, netHandleList); in OH_NetConn_GetAllNets()
H A Dnet_connection_adapter.cpp94 int32_t Conv2NetHandleList(const std::list<sptr<NetHandle>> &netHandleObjList, NetConn_NetHandleList *netHandleList) in Conv2NetHandleList() argument
99 NETMGR_LOG_E("netHandleList out of memory"); in Conv2NetHandleList()
102 netHandleList->netHandles[i++].netId = (*netHandleObj).GetNetId(); in Conv2NetHandleList()
104 netHandleList->netHandleListSize = netHandleObjList.size(); in Conv2NetHandleList()

Completed in 4 milliseconds