/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 391 size_t fastDataSize = 0; in PackHandshakeMsgForFastData() local 633 int32_t len, uint16_t *fastDataSize) in TransProxyUnpackHandshakeAckMsg() argument 635 TRANS_CHECK_AND_RETURN_RET_LOGE(msg != NULL && chanInfo != NULL && fastDataSize != NULL, in TransProxyUnpackHandshakeAckMsg() 669 !GetJsonObjectNumber16Item(root, JSON_KEY_FIRST_DATA_SIZE, fastDataSize) || in TransProxyUnpackHandshakeAckMsg() 705 size_t fastDataSize = 0; in UnpackPackHandshakeMsgForFastData() local 988 uint16_t fastDataSize = appInfo->fastTransDataSize; in TransProxyMessageData() local 989 if (memcpy_s(dataInfo->inData, fastDataSize, appInfo->fastTransData, fastDataSize) != EOK) { in TransProxyMessageData() 994 dataInfo->inLen = fastDataSize; in TransProxyMessageData() 1005 uint16_t fastDataSize = appInfo->fastTransDataSize; in TransProxyByteData() local 1010 … (memcpy_s(dataInfo->inData + sizeof(SessionHead), fastDataSize, appInfo->fastTransData, fastDataS… in TransProxyByteData() [all …]
|
H A D | softbus_proxychannel_manager.c | 799 ProxyChannelInfo *info, const ProxyMessage *msg, int32_t errCode, uint16_t *fastDataSize) in TransProxyHandshakeUnpackRightMsg() argument 801 if (fastDataSize == NULL) { in TransProxyHandshakeUnpackRightMsg() 805 int32_t ret = TransProxyUnpackHandshakeAckMsg(msg->data, info, msg->dateLen, fastDataSize); in TransProxyHandshakeUnpackRightMsg() 835 uint16_t fastDataSize = 0; in TransProxyProcessHandshakeAckMsg() local 850 if (TransProxyHandshakeUnpackRightMsg(&info, msg, errCode, &fastDataSize) != SOFTBUS_OK) { in TransProxyProcessHandshakeAckMsg() 865 …if (info.appInfo.fastTransDataSize <= 0 || (fastDataSize > 0 && fastDataSize == info.appInfo.fastT… in TransProxyProcessHandshakeAckMsg()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/ |
H A D | softbus_message_open_channel.c | 78 size_t fastDataSize = 0; in PackFirstData() local 79 int32_t ret = SoftBusBase64Encode(encodeFastData, BASE64_FAST_DATA_LEN, &fastDataSize, in PackFirstData() 184 size_t fastDataSize = 0; in UnpackFirstData() local 197 FAST_TDC_EXT_DATA_SIZE, &fastDataSize, encodeFastData, strlen((char *)encodeFastData)); in UnpackFirstData() 357 int32_t UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) in UnpackReply() argument 373 if (!GetJsonObjectNumber16Item(msg, FIRST_DATA_SIZE, fastDataSize)) { in UnpackReply()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/include/ |
H A D | softbus_message_open_channel.h | 79 int32_t UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/tcp_direct/unittest/mock/ |
H A D | trans_tcp_direct_message_test_mock.cpp | 95 int UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) in UnpackReply() argument 97 return GetTransTcpDirectMessageInterface()->UnpackReply(msg, appInfo, fastDataSize); in UnpackReply()
|
H A D | trans_tcp_direct_message_test_mock.h | 51 virtual int UnpackReply(const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize) = 0; 101 MOCK_METHOD3(UnpackReply, int (const cJSON *msg, AppInfo *appInfo, uint16_t *fastDataSize));
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/ |
H A D | softbus_message_open_channel_test.cpp | 245 uint16_t fastDataSize = 1; variable 246 ret = UnpackReply(json, appInfo, &fastDataSize);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/ |
H A D | softbus_proxychannel_message_test.cpp | 246 uint16_t fastDataSize = FAST_TRANS_DATASIZE; variable 258 ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize); 266 ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize); 281 uint16_t fastDataSize = FAST_TRANS_DATASIZE; variable 288 int32_t ret = TransProxyUnpackHandshakeAckMsg(msg, &outChannel, sizeof(msg), &fastDataSize);
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/include/ |
H A D | softbus_proxychannel_message.h | 165 int32_t len, uint16_t *fastDataSize);
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_message.c | 631 uint16_t fastDataSize = 0; in OpenDataBusReply() local 632 TRANS_CHECK_AND_RETURN_RET_LOGE(UnpackReply(reply, &conn.appInfo, &fastDataSize) == SOFTBUS_OK, in OpenDataBusReply() 641 …if ((fastDataSize > 0 && (conn.appInfo.fastTransDataSize == fastDataSize)) || conn.appInfo.fastTra… in OpenDataBusReply()
|