Home
last modified time | relevance | path

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

/ohos5.0/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->fastTransDa… in CopyAppInfoFastTransData()
103 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
107 conn->appInfo.fastTransData = fastTransData; in CopyAppInfoFastTransData()
H A Dtrans_tcp_direct_p2p.c960 if (appInfo->fastTransData != NULL && appInfo->fastTransDataSize > 0) { in CopyAppInfoFastTransData()
961 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); in CopyAppInfoFastTransData() local
962 if (fastTransData == NULL) { in CopyAppInfoFastTransData()
965 …if (memcpy_s((char *)fastTransData, appInfo->fastTransDataSize, (const char *)appInfo->fastTransDa… in CopyAppInfoFastTransData()
968 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
971 conn->appInfo.fastTransData = fastTransData; in CopyAppInfoFastTransData()
978 if (appInfo != NULL && appInfo->fastTransData != NULL) { in FreeFastTransData()
979 SoftBusFree((void *)(appInfo->fastTransData)); in FreeFastTransData()
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.c748 receiveData.data = (void*)conn->appInfo.fastTransData; in NotifyFastDataRecv()
808 if (chan->appInfo.fastTransData != NULL) { in ReleaseSessionConn()
809 SoftBusFree((void*)chan->appInfo.fastTransData); in ReleaseSessionConn()
962 if (conn->appInfo.fastTransDataSize > 0 && conn->appInfo.fastTransData != NULL) { in OpenDataBusRequest()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c190 …appInfo->fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize + FAST_TDC_EXT_DATA_S… in UnpackFirstData()
191 if (appInfo->fastTransData == NULL) { in UnpackFirstData()
196 …int32_t ret = SoftBusBase64Decode((unsigned char *)appInfo->fastTransData, appInfo->fastTransDataS… in UnpackFirstData()
200 SoftBusFree((void *)appInfo->fastTransData); in UnpackFirstData()
201 appInfo->fastTransData = NULL; in UnpackFirstData()
262 SoftBusFree((void *)appInfo->fastTransData); in UnpackRequest()
273 SoftBusFree((void *)appInfo->fastTransData); in UnpackRequest()
468 if (TransTdcEncrypt(appInfo->sessionKey, (const char *)appInfo->fastTransData, in TransTdcPackFastData()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_manager.c297 item->appInfo.fastTransData = NULL; in TransProxyDelChanByReqId()
319 if (item->appInfo.fastTransData != NULL) { in TransProxyDelChanByChanId()
391 if (removeNode->appInfo.fastTransData != NULL) { in TransProxyReleaseChannelList()
1107 if (chan->appInfo.fastTransData != NULL) { in ReleaseChannelInfo()
1108 SoftBusFree((void*)chan->appInfo.fastTransData); in ReleaseChannelInfo()
1471 if (fastTransData == NULL) { in CopyAppInfoFastTransData()
1474 …if (memcpy_s((char *)fastTransData, appInfo->fastTransDataSize, (const char *)appInfo->fastTransDa… in CopyAppInfoFastTransData()
1477 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
1480 chan->appInfo.fastTransData = fastTransData; in CopyAppInfoFastTransData()
1656 removeNode->appInfo.fastTransData = NULL; in TransProxyTimerItemProc()
[all …]
H A Dsoftbus_proxychannel_message.c711 …appInfo->fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize + FAST_EXT_BYTE_SIZE); in UnpackPackHandshakeMsgForFastData()
712 if (appInfo->fastTransData == NULL) { in UnpackPackHandshakeMsgForFastData()
718 …int32_t ret = SoftBusBase64Decode((unsigned char *)appInfo->fastTransData, appInfo->fastTransDataS… in UnpackPackHandshakeMsgForFastData()
722 SoftBusFree((void *)appInfo->fastTransData); in UnpackPackHandshakeMsgForFastData()
723 appInfo->fastTransData = NULL; in UnpackPackHandshakeMsgForFastData()
989 if (memcpy_s(dataInfo->inData, fastDataSize, appInfo->fastTransData, fastDataSize) != EOK) { in TransProxyMessageData()
1010 …if (memcpy_s(dataInfo->inData + sizeof(SessionHead), fastDataSize, appInfo->fastTransData, fastDat… in TransProxyByteData()
/ohos5.0/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->fastTransDa… in CopyAppInfoFastTransData()
279 SoftBusFree(fastTransData); in CopyAppInfoFastTransData()
282 newChannel->info.fastTransData = fastTransData; in CopyAppInfoFastTransData()
1085 if (newChannel->info.fastTransData != NULL) { in TransOpenUdpChannel()
1086 SoftBusFree((void *)newChannel->info.fastTransData); in TransOpenUdpChannel()
/ohos5.0/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()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/
H A Dtrans_tcp_direct_p2p_mock_test.cpp842 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); variable
843 ASSERT_TRUE(fastTransData != nullptr);
844 appInfo->fastTransData = nullptr;
848 appInfo->fastTransData = fastTransData;
878 appInfo->fastTransData = nullptr;
934 uint8_t *fastTransData = (uint8_t *)SoftBusCalloc(appInfo->fastTransDataSize); variable
935 ASSERT_TRUE(fastTransData != nullptr);
936 appInfo->fastTransData = fastTransData;
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp99 …AddStringToJsonObject(msg, "FIRST_DATA", reinterpret_cast<const char *>(appInfo->fastTransData)) || in TestTransAuthChannelMsgPack()
298 appInfo->fastTransData = (uint8_t*)"abcdef@ghabcdefghabcdefghfgdabc";
329 appInfo->fastTransData = (uint8_t*)"abcdef@ghabcdefghabcdefghfgdabc";
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/include/
H A Dsoftbus_app_info.h127 const uint8_t *fastTransData; member
/ohos5.0/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;
379 testAttr.fastTransData = reinterpret_cast<uint8_t *>(const_cast<char *>(TEST_FAST_TRANS_DATA));
880 appInfo->fastTransData = (uint8_t *)SoftBusCalloc(sizeof(uint8_t));
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()
/ohos5.0/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()
/ohos5.0/foundation/communication/dsoftbus/interfaces/kits/transport/
H A Dsession.h128 uint8_t *fastTransData; member
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/moduletest/socket/stream_encrypt_test/
H A Dstream_encrypt_client_mt.cpp311 attr.fastTransData = nullptr;
/ohos5.0/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()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_manager.c571 tmpAttr->fastTransData = NULL; in FillSessionParam()
775 tmpAttr->fastTransData = NULL; in FillDfsSocketParam()
H A Dclient_trans_session_service.c241 tmpAttr->fastTransData = NULL; in BuildParamSessionAttribute()
959 tmpAttr->fastTransData = NULL; in CreateSessionAttributeBySocketInfoTrans()
/ohos5.0/foundation/communication/dsoftbus/core/frame/small/init/src/
H A Dtrans_server_stub.c153 getAttr->fastTransData = (uint8_t *)ReadRawData(req, getAttr->fastTransDataSize); in ServerReadSessionAttrs()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/fuzztest/softbusproxychannelmanager_fuzzer/
H A Dsoftbusproxychannelmanager_fuzzer.cpp69 appInfo->fastTransData = (reinterpret_cast<const uint8_t *>(data)); in FillAppInfoPart()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/
H A Dsoftbus_proxychannel_message_test.cpp735 appInfo->fastTransData = (uint8_t *)TEST_FAST_TRANS_DATA;
773 appInfo->fastTransData = (uint8_t *)TEST_FAST_TRANS_DATA;
/ohos5.0/foundation/communication/dsoftbus/core/frame/standard/init/src/
H A Dsoftbus_server_stub.cpp526 getAttr->fastTransData = in ReadSessionAttrs()