Home
last modified time | relevance | path

Searched refs:messageParse (Results 1 - 7 of 7) sorted by relevance

/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_message.c401 DeviceMessageParse *messageParse) in IsDeviceMessagePacket()
429 if (!JSON_GetInt32FromOject(json, CODE, &messageParse->messageType)) { in IsDeviceMessagePacket()
432 AUTH_LOGI(AUTH_FSM, "messageType=%{public}d", messageParse->messageType); in IsDeviceMessagePacket()
433 if (messageParse->messageType == CODE_VERIFY_DEVICE) { in IsDeviceMessagePacket()
436 if (messageParse->messageType == CODE_TCP_KEEPALIVE) { in IsDeviceMessagePacket()
437 if (JSON_GetInt32FromOject(json, TIME, (int32_t *)&messageParse->cycle)) { in IsDeviceMessagePacket()
438 AUTH_LOGI(AUTH_FSM, "parse keepalive cycle success, cycle=%{public}d", messageParse->cycle); in IsDeviceMessagePacket()
535 const AuthManager *auth, int32_t flagRelay, AuthLinkType type, const DeviceMessageParse *messageParse) in PostDeviceMessage()
538 if (messageParse == NULL) { in PostDeviceMessage()
547 if (messageParse in PostDeviceMessage()
400 IsDeviceMessagePacket(const AuthConnInfo *connInfo, const AuthDataHead *head, const uint8_t *data, bool isServer, DeviceMessageParse *messageParse) IsDeviceMessagePacket() argument
534 PostDeviceMessage( const AuthManager *auth, int32_t flagRelay, AuthLinkType type, const DeviceMessageParse *messageParse) PostDeviceMessage() argument
[all...]
H A Dauth_manager.c1227 static void FlushDeviceProcess(const AuthConnInfo *connInfo, bool isServer, DeviceMessageParse *messageParse) in FlushDeviceProcess() argument
1239 if (PostDeviceMessage(auth, FLAG_REPLY, connInfo->type, messageParse) == SOFTBUS_OK) { in FlushDeviceProcess()
1276 DeviceMessageParse messageParse = { 0 }; in HandleDeviceInfoData() local
1277 if (IsDeviceMessagePacket(connInfo, head, data, !fromServer, &messageParse)) { in HandleDeviceInfoData()
1278 if (head->flag == 0 && messageParse.messageType == CODE_VERIFY_DEVICE) { in HandleDeviceInfoData()
1280 FlushDeviceProcess(connInfo, !fromServer, &messageParse); in HandleDeviceInfoData()
1281 } else if (head->flag == 0 && messageParse.messageType == CODE_TCP_KEEPALIVE) { in HandleDeviceInfoData()
1282 if (AuthSetTcpKeepaliveByConnInfo(connInfo, messageParse.cycle) != SOFTBUS_OK) { in HandleDeviceInfoData()
1593 DeviceMessageParse messageParse = { messageType, cycle }; in PostDeviceMessageByUuid() local
1601 ret = PostDeviceMessage(auth[i], FLAG_ACTIVE, AUTH_LINK_TYPE_WIFI, &messageParse); in PostDeviceMessageByUuid()
[all...]
/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_session_message.h65 const AuthManager *auth, int32_t flagRelay, AuthLinkType type, const DeviceMessageParse *messageParse);
67 DeviceMessageParse *messageParse);
/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_test.cpp579 DeviceMessageParse messageParse = { CODE_VERIFY_DEVICE, DEFAULT_FREQ_CYCLE }; in HWTEST_F() local
581 int32_t ret = PostDeviceMessage(&auth, flagRelay, AUTH_LINK_TYPE_WIFI, &messageParse); in HWTEST_F()
583 messageParse.messageType = CODE_TCP_KEEPALIVE; in HWTEST_F()
584 ret = PostDeviceMessage(&auth, flagRelay, AUTH_LINK_TYPE_WIFI, &messageParse); in HWTEST_F()
600 DeviceMessageParse messageParse = { CODE_VERIFY_DEVICE, DEFAULT_FREQ_CYCLE }; in HWTEST_F() local
602 int32_t ret = PostDeviceMessage(auth, flagRelay, AUTH_LINK_TYPE_WIFI, &messageParse); in HWTEST_F()
606 ret = PostDeviceMessage(&authManager, flagRelay, AuthLinkType(type), &messageParse); in HWTEST_F()
609 ret = PostDeviceMessage(&authManager, flagRelay, AuthLinkType(type), &messageParse); in HWTEST_F()
H A Dauth_other_test.cpp581 DeviceMessageParse messageParse = { 0 }; in HWTEST_F() local
582 bool ret = IsDeviceMessagePacket(connInfo, head, &data, isServer, &messageParse); in HWTEST_F()
585 ret = IsDeviceMessagePacket(connInfo, head, &data, isServer, &messageParse); in HWTEST_F()
H A Dauth_session_message_test.cpp618 DeviceMessageParse messageParse = { 0 }; in HWTEST_F() local
620 EXPECT_TRUE(!IsDeviceMessagePacket(&connInfo, nullptr, nullptr, true, &messageParse)); in HWTEST_F()
622 EXPECT_TRUE(!IsDeviceMessagePacket(&connInfo, nullptr, nullptr, true, &messageParse)); in HWTEST_F()
H A Dauth_manager_test.cpp527 DeviceMessageParse messageParse = { CODE_VERIFY_DEVICE, DEFAULT_FREQ_CYCLE }; in HWTEST_F() local
532 FlushDeviceProcess(&connInfo, true, &messageParse); in HWTEST_F()
537 FlushDeviceProcess(&connInfo, true, &messageParse); in HWTEST_F()

Completed in 12 milliseconds