Home
last modified time | relevance | path

Searched refs:fastTransData (Results 1 - 25 of 26) sorted by relevance

12

/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_wifi.c36 if (appInfo != NULL && appInfo->fastTransData != NULL) { in FreeFastTransData()
37 SoftBusFree((void *)(appInfo->fastTransData)); in FreeFastTransData()
96 if (appInfo->fastTransData != NULL && appInfo->fastTransDataSize > 0) { in CopyAppInfoFastTransData()
97 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in CopyAppInfoFastTransData() local
98 if (fastTransData == NULL) { in CopyAppInfoFastTransData()
101 if (memcpy_s((char *)fastTransData, appInfo->fastTransDataSize, (const char *)appInfo->fastTransData, in CopyAppInfoFastTransData()
103 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
104 TRANS_LOGE(TRANS_CTRL, "memcpy fastTransData fail"); in CopyAppInfoFastTransData()
107 conn->appInfo.fastTransData in CopyAppInfoFastTransData()
[all...]
H A Dtrans_tcp_direct_p2p.c1095 if (appInfo->fastTransData != NULL && appInfo->fastTransDataSize > 0) { in CopyAppInfoFastTransData()
1096 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in CopyAppInfoFastTransData() local
1097 if (fastTransData == NULL) { in CopyAppInfoFastTransData()
1100 if (memcpy_s((char *)fastTransData, appInfo->fastTransDataSize, (const char *)appInfo->fastTransData, in CopyAppInfoFastTransData()
1102 TRANS_LOGE(TRANS_CTRL, "memcpy fastTransData fail"); in CopyAppInfoFastTransData()
1103 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
1106 conn->appInfo.fastTransData = fastTransData; in CopyAppInfoFastTransData()
1113 if (appInfo != NULL && appInfo->fastTransData ! in FreeFastTransData()
[all...]
H A Dtrans_tcp_direct_sessionconn.c317 if (item->appInfo.fastTransData != NULL) { in TransDelSessionConnById()
318 SoftBusFree((void*)item->appInfo.fastTransData); in TransDelSessionConnById()
H A Dtrans_tcp_direct_message.c750 receiveData.data = (void*)conn->appInfo.fastTransData; in NotifyFastDataRecv()
809 if (chan->appInfo.fastTransData != NULL) { in ReleaseSessionConn()
810 SoftBusFree((void*)chan->appInfo.fastTransData); in ReleaseSessionConn()
964 if (conn->appInfo.fastTransDataSize > 0 && conn->appInfo.fastTransData != NULL) { in OpenDataBusRequest()
/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c192 appInfo->fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize + FAST_TDC_EXT_DATA_SIZE); in UnpackFirstData()
193 if (appInfo->fastTransData == NULL) { in UnpackFirstData()
198 int32_t ret = SoftBusBase64Decode((unsigned char *)appInfo->fastTransData, appInfo->fastTransDataSize + in UnpackFirstData()
202 SoftBusFree((void *)appInfo->fastTransData); in UnpackFirstData()
203 appInfo->fastTransData = NULL; in UnpackFirstData()
264 SoftBusFree((void *)appInfo->fastTransData); in UnpackRequest()
275 SoftBusFree((void *)appInfo->fastTransData); in UnpackRequest()
470 if (TransTdcEncrypt(appInfo->sessionKey, (const char *)appInfo->fastTransData, in TransTdcPackFastData()
/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_manager.c296 SoftBusFree((void *)item->appInfo.fastTransData); in TransProxyDelChanByReqId()
297 item->appInfo.fastTransData = NULL; in TransProxyDelChanByReqId()
319 if (item->appInfo.fastTransData != NULL) { in TransProxyDelChanByChanId()
320 SoftBusFree((void *)item->appInfo.fastTransData); in TransProxyDelChanByChanId()
392 if (removeNode->appInfo.fastTransData != NULL) { in TransProxyReleaseChannelList()
393 SoftBusFree((void *)removeNode->appInfo.fastTransData); in TransProxyReleaseChannelList()
440 if (removeNode->appInfo.fastTransData != NULL) { in TransProxyDelByChannelId()
441 SoftBusFree((void *)removeNode->appInfo.fastTransData); in TransProxyDelByChannelId()
473 if (removeNode->appInfo.fastTransData != NULL) { in TransProxyResetChan()
474 SoftBusFree((void *)removeNode->appInfo.fastTransData); in TransProxyResetChan()
1474 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); CopyAppInfoFastTransData() local
[all...]
H A Dsoftbus_proxychannel_message.c707 appInfo->fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize + FAST_EXT_BYTE_SIZE); in UnpackPackHandshakeMsgForFastData()
708 if (appInfo->fastTransData == NULL) { in UnpackPackHandshakeMsgForFastData()
714 int32_t ret = SoftBusBase64Decode((unsigned char *)appInfo->fastTransData, appInfo->fastTransDataSize + in UnpackPackHandshakeMsgForFastData()
718 SoftBusFree((void *)appInfo->fastTransData); in UnpackPackHandshakeMsgForFastData()
719 appInfo->fastTransData = NULL; in UnpackPackHandshakeMsgForFastData()
989 if (memcpy_s(dataInfo->inData, fastDataSize, appInfo->fastTransData, fastDataSize) != EOK) { in TransProxyMessageData()
990 TRANS_LOGE(TRANS_CTRL, "memcpy_s fastTransData error."); in TransProxyMessageData()
1010 if (memcpy_s(dataInfo->inData + sizeof(SessionHead), fastDataSize, appInfo->fastTransData, fastDataSize) != EOK) { in TransProxyByteData()
1011 TRANS_LOGE(TRANS_CTRL, "memcpy_s fastTransData error."); in TransProxyByteData()
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_channel_manager.c69 if (udpChannel->info.fastTransData != NULL) { in NotifyTimeOutUdpChannel()
70 SoftBusFree((void *)udpChannel->info.fastTransData); in NotifyTimeOutUdpChannel()
144 if (udpChannel->info.fastTransData != NULL) { in TransUdpChannelMgrDeinit()
145 SoftBusFree((void *)udpChannel->info.fastTransData); in TransUdpChannelMgrDeinit()
212 if (udpChannelNode->info.fastTransData != NULL) { in TransDelUdpChannel()
213 SoftBusFree((void *)(udpChannelNode->info.fastTransData)); in TransDelUdpChannel()
237 if (udpChannel->info.fastTransData != NULL) { in NotifyUdpChannelCloseInList()
238 SoftBusFree((void *)(udpChannel->info.fastTransData)); in NotifyUdpChannelCloseInList()
H A Dtrans_udp_negotiation.c271 if (appInfo->fastTransData != NULL && appInfo->fastTransDataSize > 0) { in CopyAppInfoFastTransData()
272 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in CopyAppInfoFastTransData() local
273 if (fastTransData == NULL) { in CopyAppInfoFastTransData()
276 if (memcpy_s((char *)fastTransData, appInfo->fastTransDataSize, (const char *)appInfo->fastTransData, in CopyAppInfoFastTransData()
278 TRANS_LOGE(TRANS_CTRL, "memcpy fastTransData fail"); in CopyAppInfoFastTransData()
279 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
282 newChannel->info.fastTransData = fastTransData; in CopyAppInfoFastTransData()
1071 if (newChannel->info.fastTransData ! in TransOpenUdpChannel()
[all...]
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_p2p_mock_test.cpp867 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in HWTEST_F() local
868 ASSERT_TRUE(fastTransData != nullptr); in HWTEST_F()
869 appInfo->fastTransData = nullptr; in HWTEST_F()
873 appInfo->fastTransData = fastTransData; in HWTEST_F()
903 appInfo->fastTransData = nullptr; in HWTEST_F()
959 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in HWTEST_F() local
960 ASSERT_TRUE(fastTransData != nullptr); in HWTEST_F()
961 appInfo->fastTransData = fastTransData; in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/core/transmission/trans_channel/common/src/
H A Dtrans_channel_common.c229 if (param->attr->fastTransData != NULL && param->attr->fastTransDataSize > 0 && in CopyAppInfoFromSessionParam()
235 appInfo->fastTransData = (uint8_t*)SoftBusCalloc(param->attr->fastTransDataSize); in CopyAppInfoFromSessionParam()
236 if (appInfo->fastTransData == NULL) { in CopyAppInfoFromSessionParam()
239 if (memcpy_s((char *)appInfo->fastTransData, param->attr->fastTransDataSize, in CopyAppInfoFromSessionParam()
240 (const char *)param->attr->fastTransData, param->attr->fastTransDataSize) != EOK) { in CopyAppInfoFromSessionParam()
537 if (appInfo->fastTransData != NULL) { in TransFreeAppInfo()
538 SoftBusFree((void *)(appInfo->fastTransData)); in TransFreeAppInfo()
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/
H A Dsoftbus_proxychannel_manager_test.cpp909 chan->appInfo.fastTransData = reinterpret_cast<uint8_t *>(SoftBusCalloc(sizeof(chan->appInfo.fastTransDataSize))); in HWTEST_F()
910 ASSERT_TRUE(nullptr != chan->appInfo.fastTransData); in HWTEST_F()
927 chan->appInfo.fastTransData = reinterpret_cast<uint8_t *>(SoftBusCalloc(sizeof(chan->appInfo.fastTransDataSize))); in HWTEST_F()
928 ASSERT_TRUE(nullptr != chan->appInfo.fastTransData); in HWTEST_F()
996 chan->appInfo.fastTransData = reinterpret_cast<uint8_t *>(SoftBusCalloc(sizeof(chan->appInfo.fastTransDataSize))); in HWTEST_F()
997 ASSERT_TRUE(nullptr != chan->appInfo.fastTransData); in HWTEST_F()
1024 chan->appInfo.fastTransData = reinterpret_cast<uint8_t *>(SoftBusCalloc(sizeof(chan->appInfo.fastTransDataSize))); in HWTEST_F()
1026 ASSERT_TRUE(nullptr != chan->appInfo.fastTransData); in HWTEST_F()
1114 chan1->appInfo.fastTransData = reinterpret_cast<uint8_t *>(SoftBusCalloc(sizeof(chan1->appInfo.fastTransDataSize))); in HWTEST_F()
1116 ASSERT_TRUE(nullptr != chan1->appInfo.fastTransData); in HWTEST_F()
[all...]
H A Dsoftbus_proxychannel_message_test.cpp735 appInfo->fastTransData = (uint8_t *)TEST_FAST_TRANS_DATA; in HWTEST_F()
773 appInfo->fastTransData = (uint8_t *)TEST_FAST_TRANS_DATA; in HWTEST_F()
/foundation/communication/dsoftbus/core/transmission/common/include/
H A Dsoftbus_app_info.h127 const uint8_t *fastTransData; member
/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp103 !AddStringToJsonObject(msg, "FIRST_DATA", reinterpret_cast<const char *>(appInfo->fastTransData)) || in TestTransAuthChannelMsgPack()
302 appInfo->fastTransData = (uint8_t*)"abcdef@ghabcdefghabcdefghfgdabc"; in HWTEST_F()
333 appInfo->fastTransData = (uint8_t*)"abcdef@ghabcdefghabcdefghfgdabc"; in HWTEST_F()
/foundation/communication/dsoftbus/interfaces/kits/transport/
H A Dsession.h128 uint8_t *fastTransData; member
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/common/
H A Dtrans_lane_common_test.cpp95 attr->fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA)); in TestCreateSessionParam()
368 attr.fastTransData = nullptr; in HWTEST_F()
379 testAttr.fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA)); in HWTEST_F()
880 appInfo->fastTransData = (uint8_t *)SoftBusCalloc(sizeof(uint8_t)); in HWTEST_F()
H A Dtrans_lane_pending_test.cpp90 attr->fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA)); in TestCreateSessionParam()
113 attr->fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA)); in TestCreateNewSessionParam()
136 attr->fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA)); in TestCreateSessionParamWithPara()
/foundation/communication/dsoftbus/sdk/transmission/ipc/small/
H A Dtrans_server_proxy.c209 if (attrs->fastTransData != NULL) { in TransWriteIpcSessionAttrs()
214 if (!WriteRawData(request, attrs->fastTransData, attrs->fastTransDataSize)) { in TransWriteIpcSessionAttrs()
215 TRANS_LOGE(TRANS_SDK, "OpenSession write my attrs fastTransData failed!"); in TransWriteIpcSessionAttrs()
/foundation/communication/dsoftbus/tests/sdk/transmission/moduletest/socket/stream_encrypt_test/
H A Dstream_encrypt_client_mt.cpp311 attr.fastTransData = nullptr; in HWTEST_F()
/foundation/communication/dsoftbus/sdk/transmission/ipc/standard/src/
H A Dtrans_server_proxy_standard.cpp209 if (attrs->fastTransData != nullptr) { in TransWriteSessionAttrs()
214 if (!data.WriteRawData(attrs->fastTransData, attrs->fastTransDataSize)) { in TransWriteSessionAttrs()
215 TRANS_LOGE(TRANS_SDK, "OpenSession write my attrs fastTransData failed!"); in TransWriteSessionAttrs()
/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_manager.c568 tmpAttr->fastTransData = NULL; in FillSessionParam()
772 tmpAttr->fastTransData = NULL; in FillDfsSocketParam()
H A Dclient_trans_session_service.c242 tmpAttr->fastTransData = NULL; in BuildParamSessionAttribute()
960 tmpAttr->fastTransData = NULL; in CreateSessionAttributeBySocketInfoTrans()
/foundation/communication/dsoftbus/tests/core/transmission/fuzztest/softbusproxychannelmanager_fuzzer/
H A Dsoftbusproxychannelmanager_fuzzer.cpp69 appInfo->fastTransData = (reinterpret_cast<const uint8_t *>(data)); in FillAppInfoPart()
/foundation/communication/dsoftbus/core/frame/small/init/src/
H A Dtrans_server_stub.c153 getAttr->fastTransData = (uint8_t *)ReadRawData(req, getAttr->fastTransDataSize); in ServerReadSessionAttrs()

Completed in 34 milliseconds

12