Home
last modified time | relevance | path

Searched refs:newChannel (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_negotiation_test.cpp131 EXPECT_TRUE(newChannel != NULL);
132 newChannel->seq = 1;
187 EXPECT_TRUE(newChannel != NULL);
188 newChannel->seq = 1;
190 ret = TransAddUdpChannel(newChannel);
304 EXPECT_TRUE(newChannel != NULL);
305 newChannel->seq = 1;
323 EXPECT_TRUE(newChannel != NULL);
324 newChannel->seq = 1;
326 int res = strcpy_s(newChannel->info.myData.pkgName, sizeof(newChannel->info.myData.pkgName),
[all …]
H A Dtrans_udp_manager_test.cpp194 newChannel->seq = 20;
201 SoftBusFree(newChannel);
218 newChannel->seq = 20;
233 SoftBusFree(newChannel);
251 newChannel->seq = 20;
261 SoftBusFree(newChannel);
275 newChannel->seq = 20;
293 SoftBusFree(newChannel);
310 newChannel->seq = 20;
318 SoftBusFree(newChannel);
[all …]
H A Dtrans_udp_static_test.cpp267 UdpChannelInfo *newChannel = (UdpChannelInfo *)SoftBusCalloc(sizeof(UdpChannelInfo)); variable
268 ASSERT_NE(nullptr, newChannel);
270 int32_t ret = CopyAppInfoFastTransData(newChannel, &appInfo);
272 SoftBusFree(newChannel);
273 newChannel = nullptr;
H A Dtrans_udp_nego_test.cpp286 UdpChannelInfo *newChannel = CreateUdpChannelPackTest(); variable
287 ASSERT_TRUE(newChannel != nullptr);
289 int32_t ret = TransAddUdpChannel(newChannel);
297 TransOnExchangeUdpInfoReply(INVALID_AUTH_ID, newChannel->seq, msg);
346 UdpChannelInfo *newChannel = (UdpChannelInfo*)SoftBusCalloc(sizeof(UdpChannelInfo)); variable
347 ASSERT_TRUE(newChannel != nullptr);
348 (void)memset_s(newChannel, sizeof(UdpChannelInfo), 0, sizeof(UdpChannelInfo));
349 newChannel->seq = 1;
352 int32_t ret = TransAddUdpChannel(newChannel);
354 TransOnExchangeUdpInfoRequest(authHandle, newChannel->seq, NULL);
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/src/
H A Dclient_trans_udp_manager.c201 if (newChannel == NULL) { in ConvertChannelInfoToUdpChannel()
206 newChannel->channelId = channel->channelId; in ConvertChannelInfoToUdpChannel()
207 newChannel->dfileId = -1; in ConvertChannelInfoToUdpChannel()
208 newChannel->isEnable = false; in ConvertChannelInfoToUdpChannel()
210 newChannel->info.peerPid = channel->peerPid; in ConvertChannelInfoToUdpChannel()
212 newChannel->routeType = channel->routeType; in ConvertChannelInfoToUdpChannel()
217 strcpy_s(newChannel->info.myIp, sizeof(newChannel->info.myIp), channel->myIp) != EOK) { in ConvertChannelInfoToUdpChannel()
219 SoftBusFree(newChannel); in ConvertChannelInfoToUdpChannel()
223 return newChannel; in ConvertChannelInfoToUdpChannel()
259 if (newChannel == NULL) { in TransOnUdpChannelOpened()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation.c290 if (newChannel == NULL) { in NewUdpChannelByAppInfo()
295 if (memcpy_s(&(newChannel->info), sizeof(newChannel->info), info, sizeof(AppInfo)) != EOK) { in NewUdpChannelByAppInfo()
297 SoftBusFree(newChannel); in NewUdpChannelByAppInfo()
301 (void)memset_s(newChannel->info.sessionKey, sizeof(newChannel->info.sessionKey), 0, in NewUdpChannelByAppInfo()
303 SoftBusFree(newChannel); in NewUdpChannelByAppInfo()
307 return newChannel; in NewUdpChannelByAppInfo()
332 if (newChannel == NULL) { in AcceptUdpChannelAsServer()
341 SoftBusFree(newChannel); in AcceptUdpChannelAsServer()
1074 if (newChannel == NULL) { in TransOpenUdpChannel()
1088 (void)memset_s(newChannel->info.sessionKey, sizeof(newChannel->info.sessionKey), 0, in TransOpenUdpChannel()
[all …]