mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2024-11-30 02:32:20 +00:00
将复用消息放到状态机处理
Signed-off-by: xionglei <xionglei3@huawei.com>
This commit is contained in:
parent
fcd022deaf
commit
5ccc702a8a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user