将复用消息放到状态机处理

Signed-off-by: xionglei <xionglei3@huawei.com>
This commit is contained in:
xionglei 2024-09-14 06:38:02 +00:00 committed by Gitee
parent fcd022deaf
commit 5ccc702a8a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 15 deletions

View File

@ -58,9 +58,11 @@ bool InvitationRequestState::ExecuteStateMsg(InternalMessagePtr msg)
WIFI_LOGW("Remove unknown client from currentGroup");
p2pStateMachine.groupManager.RemoveClientFromGroup(
netId, p2pStateMachine.savedP2pConfig.GetDeviceAddress());
int uid;
SharedLinkManager::GetGroupUid(uid);
p2pStateMachine.SwitchState(&p2pStateMachine.p2pGroupFormedState);
p2pStateMachine.SendMessage(
static_cast<int>(P2P_STATE_MACHINE_CMD::CMD_CONNECT), p2pStateMachine.savedP2pConfig);
static_cast<int>(P2P_STATE_MACHINE_CMD::CMD_CONNECT), uid, 0, p2pStateMachine.savedP2pConfig);
break;
}
}

View File

@ -282,13 +282,6 @@ public:
*/
virtual ErrCode Hid2dRequestGcIp(const std::string& gcMac, std::string& ipAddr) = 0;
/**
* @Description Set the group UID of calling service.
*
* @param callingUid - the UID of caller
*/
virtual void SetGroupUid(int callingUid) = 0;
/**
* @Description Increase the reference count of the hid2d service.
*
@ -303,13 +296,6 @@ public:
*/
virtual void DecreaseSharedLink(int callingUid) = 0;
/**
* @Description Get the reference count of the hid2d service.
*
* @return int - reference count
*/
virtual int GetSharedLinkCount(void) = 0;
/**
* @Description Handle the exception of upper-layer business.
*