Home
last modified time | relevance | path

Searched refs:masterUdid (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_net_builder.h118 char masterUdid[UDID_BUF_LEN]; member
159 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight);
180 void UpdateLocalMasterNode(bool isCurrentNode, const char *masterUdid, int32_t weight);
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/src/
H A Dhb_fsm_mock.cpp56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
58 … return HeartBeatFSMInterfaceInstance()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
H A Dhb_strategy_mock.cpp56 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
58 return HeartBeatStrategyInterface()->LnnNotifyMasterElect(networkId, masterUdid, masterWeight); in LnnNotifyMasterElect()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_net_builder.c142 void UpdateLocalMasterNode(bool isCurrentNode, const char *masterUdid, int32_t weight) in UpdateLocalMasterNode() argument
144 if (LnnSetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid) != SOFTBUS_OK) { in UpdateLocalMasterNode()
151 LnnNotifyMasterNodeChanged(isCurrentNode, masterUdid, weight); in UpdateLocalMasterNode()
167 char masterUdid[UDID_BUF_LEN] = { 0 }; in SyncElectMessage() local
180 if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, UDID_BUF_LEN) != SOFTBUS_OK || in SyncElectMessage()
190 if (!AddStringToJsonObject(json, JSON_KEY_MASTER_UDID, masterUdid) || in SyncElectMessage()
803 !JSON_GetStringFromOject(json, JSON_KEY_MASTER_UDID, para->masterUdid, UDID_BUF_LEN)) { in OnReceiveMasterElectMsg()
1158 int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t masterWeight) in LnnNotifyMasterElect() argument
1166 if (networkId == NULL || masterUdid == NULL) { in LnnNotifyMasterElect()
1176 strncpy_s(para->masterUdid, UDID_BUF_LEN, masterUdid, strlen(masterUdid)) != EOK) { in LnnNotifyMasterElect()
H A Dlnn_net_builder_init.c408 char masterUdid[UDID_BUF_LEN] = { 0 }; in TryElectAsMasterState() local
410 if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, UDID_BUF_LEN) != SOFTBUS_OK) { in TryElectAsMasterState()
422 if (strcmp(masterUdid, peerUdid) != 0) { in TryElectAsMasterState()
426 Anonymize(masterUdid, &anonyMasterUdid); in TryElectAsMasterState()
H A Dlnn_net_builder_process.c603 msgPara->masterWeight, msgPara->masterUdid); in ProcessMasterElect()
607 UpdateLocalMasterNode(false, msgPara->masterUdid, msgPara->masterWeight); in ProcessMasterElect()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/manager/src/
H A Dtrans_link_listener.c64 …TransOnLinkDown(nodeInfo.networkId, nodeInfo.uuid, nodeInfo.masterUdid, peerIp, COMBINE_TYPE(WIFI_… in OnWifiDirectDeviceOffLine()
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/
H A Dhb_fsm_mock.h39 …virtual int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t master…
H A Dhb_strategy_mock.h39 …virtual int32_t LnnNotifyMasterElect(const char *networkId, const char *masterUdid, int32_t master…
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_medium_mgr.c971 char masterUdid[UDID_BUF_LEN] = { 0 }; in HbMediumMgrRecvHigherWeight() local
986 …if (LnnGetLocalStrInfo(STRING_KEY_MASTER_NODE_UDID, masterUdid, sizeof(masterUdid)) != SOFTBUS_OK)… in HbMediumMgrRecvHigherWeight()
990 isFromMaster = strcmp(masterUdid, nodeInfo.deviceInfo.deviceUdid) == 0 ? true : false; in HbMediumMgrRecvHigherWeight()
1002 Anonymize(masterUdid, &anonyMasterUdid); in HbMediumMgrRecvHigherWeight()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/src/
H A Dlnn_node_info.c199 return info->masterUdid; in LnnGetMasterUdid()
208 if (strncpy_s(info->masterUdid, UDID_BUF_LEN, udid, strlen(udid)) != EOK) { in LnnSetMasterUdid()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger_manager.c194 const char *masterUdid = NULL; in DlGetMasterUdid() local
200 masterUdid = LnnGetMasterUdid(info); in DlGetMasterUdid()
201 if (masterUdid == NULL) { in DlGetMasterUdid()
205 if (strncpy_s((char*)buf, len, masterUdid, strlen(masterUdid)) != EOK) { in DlGetMasterUdid()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h136 char masterUdid[UDID_BUF_LEN]; member
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_channel_common.c459 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in TransBuildTransOpenChannelStartEvent()
460 extra->localUdid = nodeInfo->masterUdid; in TransBuildTransOpenChannelStartEvent()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation.c647 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in ReportUdpRequestHandShakeStartEvent()
648 extra->localUdid = nodeInfo->masterUdid; in ReportUdpRequestHandShakeStartEvent()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c2319 const char* masterUdid = g_localNetLedger.localInfo.masterUdid; in LnnIsMasterNode() local
2321 ret = strncmp(masterUdid, deviceUdid, strlen(deviceUdid)) == 0; in LnnIsMasterNode()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_message.c830 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in ReportTransEventExtra()
831 extra->localUdid = nodeInfo->masterUdid; in ReportTransEventExtra()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/
H A Dtrans_lane_common_test.cpp717 (void)memcpy_s(nodeInfo.masterUdid, TEST_LEN, TEST_IP, TEST_LEN);
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1414 if (!JSON_AddStringToObject(json, MASTER_UDID, info->masterUdid) || in PackCommon()
1570 if (!JSON_GetStringFromOject(json, MASTER_UDID, info->masterUdid, UDID_BUF_LEN) || in UnpackCommon()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_manager.c1137 if (LnnGetLocalStrInfo(STRING_KEY_DEV_UDID, nodeInfo->masterUdid, UDID_BUF_LEN) == SOFTBUS_OK) { in FillProxyHandshakeExtra()
1138 extra->localUdid = nodeInfo->masterUdid; in FillProxyHandshakeExtra()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_message_append_test.cpp1690 (void)memcpy_s(nodeInfo.masterUdid, UDID_BUF_LEN, IP, UDID_BUF_LEN);