Home
last modified time | relevance | path

Searched refs:TcpDirectChannelInfo (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/src/
H A Dclient_trans_tcp_direct_manager.c52 TcpDirectChannelInfo *TransTdcGetInfoById(int32_t channelId, TcpDirectChannelInfo *info) in TransTdcGetInfoById()
61 (void)memcpy_s(info, sizeof(TcpDirectChannelInfo), item, sizeof(TcpDirectChannelInfo)); in TransTdcGetInfoById()
98 TcpDirectChannelInfo *TransTdcGetInfoByIdWithIncSeq(int32_t channelId, TcpDirectChannelInfo *info) in TransTdcGetInfoByIdWithIncSeq()
107 (void)memcpy_s(info, sizeof(TcpDirectChannelInfo), item, sizeof(TcpDirectChannelInfo)); in TransTdcGetInfoByIdWithIncSeq()
119 TcpDirectChannelInfo *TransTdcGetInfoByFd(int32_t fd, TcpDirectChannelInfo *info) in TransTdcGetInfoByFd()
128 (void)memcpy_s(info, sizeof(TcpDirectChannelInfo), item, sizeof(TcpDirectChannelInfo)); in TransTdcGetInfoByFd()
179TcpDirectChannelInfo *item = (TcpDirectChannelInfo *)SoftBusCalloc(sizeof(TcpDirectChannelInfo)); in TransGetNewTcpChannel()
288 TcpDirectChannelInfo info; in ClientTransTdcHandleListener()
289 (void)memset_s(&info, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in ClientTransTdcHandleListener()
419 TcpDirectChannelInfo channel; in TransTdcGetSessionKey()
[all …]
H A Dclient_trans_tcp_direct_callback.c78 TcpDirectChannelInfo info; in ClientTransTdcOnChannelBind()
79 (void)memset_s(&info, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in ClientTransTdcOnChannelBind()
80 TcpDirectChannelInfo *res = TransTdcGetInfoById(channelId, &info); in ClientTransTdcOnChannelBind()
H A Dclient_trans_tcp_direct_message.c127 static char *TransTdcPackData(const TcpDirectChannelInfo *channel, const char *data, uint32_t len, … in TransTdcPackData()
175 static int32_t TransTdcProcessPostData(TcpDirectChannelInfo *channel, const char *data, uint32_t le… in TransTdcProcessPostData()
224 TcpDirectChannelInfo channel; in TransTdcSendBytes()
225 (void)memset_s(&channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in TransTdcSendBytes()
236 (void)memset_s(&channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in TransTdcSendBytes()
252 TcpDirectChannelInfo channel; in TransTdcSendMessage()
253 (void)memset_s(&channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in TransTdcSendMessage()
269 (void)memset_s(&channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in TransTdcSendMessage()
278 static int32_t TransTdcSendAck(TcpDirectChannelInfo *channel, int32_t seq) in TransTdcSendAck()
405 …uint32_t flag, int32_t seqNum, TcpDirectChannelInfo *channel, const char *plain, uint32_t plainLen) in TransTdcProcessDataByFlag()
[all …]
H A Dclient_trans_tcp_direct_listener.c66 TcpDirectChannelInfo channel; in ClientTdcOnDataEvent()
67 (void)memset_s(&channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in ClientTdcOnDataEvent()
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/tcp_direct/include/
H A Dclient_trans_tcp_direct_manager.h47 } TcpDirectChannelInfo; typedef
54 TcpDirectChannelInfo *TransTdcGetInfoById(int32_t channelId, TcpDirectChannelInfo *info);
55 TcpDirectChannelInfo *TransTdcGetInfoByFd(int32_t fd, TcpDirectChannelInfo *info);
56 TcpDirectChannelInfo *TransTdcGetInfoByIdWithIncSeq(int32_t channelId, TcpDirectChannelInfo *info);
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/tcp_direct/
H A Dtrans_sdk_tcp_direct_test.cpp136 TcpDirectChannelInfo *TestGetTcpDirectChannelInfo() in TestGetTcpDirectChannelInfo()
138TcpDirectChannelInfo *item = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo)); in TestGetTcpDirectChannelInfo()
139 (void)memset_s(item, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo)); in TestGetTcpDirectChannelInfo()
316TcpDirectChannelInfo *info = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo));
318 (void)memset_s(info, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo));
325 TcpDirectChannelInfo *item = TransTdcGetInfoById(channelId, nullptr);
348TcpDirectChannelInfo *info = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo));
350 (void)memset_s(info, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo));
357 TcpDirectChannelInfo *item = TransTdcGetInfoByFd(fd, nullptr);
380TcpDirectChannelInfo *info = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo));
[all …]
H A Dtrans_tcp_direct_test.cpp468TcpDirectChannelInfo *channel = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo)…
470 (void)memset_s(channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo));
495TcpDirectChannelInfo *channel = (TcpDirectChannelInfo *)SoftBusMalloc(sizeof(TcpDirectChannelInfo)…
497 (void)memset_s(channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo));
588TcpDirectChannelInfo *channel = (TcpDirectChannelInfo*)SoftBusMalloc(sizeof(TcpDirectChannelInfo));
590 (void)memset_s(channel, sizeof(TcpDirectChannelInfo), 0, sizeof(TcpDirectChannelInfo));
826 TcpDirectChannelInfo *info = TransGetNewTcpChannel(NULL);
854TcpDirectChannelInfo *channel = (TcpDirectChannelInfo *)SoftBusCalloc(sizeof(TcpDirectChannelInfo)…
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_manager.c252 TcpDirectChannelInfo channel; in ClientTransGetTdcIp()