Home
last modified time | relevance | path

Searched refs:ProxyMessageHead (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_session.c137 static char *TransProxyPackAppNormalMsg(const ProxyMessageHead *msg, const char *payLoad, in TransProxyPackAppNormalMsg()
140 ProxyMessageHead proxyMessageHead; in TransProxyPackAppNormalMsg()
149 … if (memcpy_s(&proxyMessageHead, sizeof(ProxyMessageHead), msg, sizeof(ProxyMessageHead)) != EOK) { in TransProxyPackAppNormalMsg()
155 …y_s(buf + connHeadLen, bufLen - connHeadLen, &proxyMessageHead, sizeof(ProxyMessageHead)) != EOK) { in TransProxyPackAppNormalMsg()
160 uint32_t dstLen = bufLen - connHeadLen - sizeof(ProxyMessageHead); in TransProxyPackAppNormalMsg()
161 if (memcpy_s(buf + connHeadLen + sizeof(ProxyMessageHead), dstLen, payLoad, datalen) != EOK) { in TransProxyPackAppNormalMsg()
174 ProxyMessageHead msgHead = { 0 }; in TransProxyTransNormalMsg()
H A Dsoftbus_proxychannel_control.c40 ProxyMessageHead msgHead = {0}; in TransProxySendInnerMessage()
115 ProxyMessageHead msgHead = {0}; in TransProxyHandshake()
164 ProxyMessageHead msgHead = {0}; in TransProxyAckHandshake()
210 ProxyMessageHead msgHead = {0}; in TransProxyKeepalive()
246 ProxyMessageHead msgHead = {0}; in TransProxyAckKeepalive()
285 ProxyMessageHead msgHead = {0}; in TransProxyResetPeer()
H A Dsoftbus_proxychannel_message.c57 msg->data = data + sizeof(ProxyMessageHead); in TransProxyParseMessageHead()
58 msg->dateLen = len - sizeof(ProxyMessageHead); in TransProxyParseMessageHead()
63 static void TransProxyPackMessageHead(ProxyMessageHead *msgHead, uint8_t *buf, uint32_t size) in TransProxyPackMessageHead()
308 int32_t PackPlaintextMessage(ProxyMessageHead *msg, ProxyDataInfo *dataInfo) in PackPlaintextMessage()
333 static int32_t PackEncryptedMessage(ProxyMessageHead *msg, AuthHandle authHandle, ProxyDataInfo *da… in PackEncryptedMessage()
359 int32_t TransProxyPackMessage(ProxyMessageHead *msg, AuthHandle authHandle, ProxyDataInfo *dataInfo) in TransProxyPackMessage()
H A Dsoftbus_proxychannel_manager.c911 static inline int32_t CheckAppTypeAndMsgHead(const ProxyMessageHead *msgHead, const AppInfo *appInf… in CheckAppTypeAndMsgHead()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/include/
H A Dsoftbus_proxychannel_message.h74 } ProxyMessageHead; typedef
77 ProxyMessageHead msgHead;
169 int32_t TransProxyPackMessage(ProxyMessageHead *msg, AuthHandle authHandle, ProxyDataInfo *dataInfo…
175 int32_t PackPlaintextMessage(ProxyMessageHead *msg, ProxyDataInfo *dataInfo);
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/include/
H A Dsoftbus_datahead_transform.h32 void UnpackProxyMessageHead(ProxyMessageHead *msg);
33 void PackProxyMessageHead(ProxyMessageHead *msg);
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/common/fuzztest/connectioncommon_fuzzer/
H A Dconnectioncommon_fuzzer.cpp43 if (size < sizeof(ProxyMessageHead)) { in DoDataHeadTransformFuzz()
46 ProxyMessageHead proxyMessageHead; in DoDataHeadTransformFuzz()
/ohos5.0/foundation/communication/dsoftbus/core/connection/common/src/
H A Dsoftbus_datahead_transform.c45 void PackProxyMessageHead(ProxyMessageHead *msg) in PackProxyMessageHead()
55 void UnpackProxyMessageHead(ProxyMessageHead *msg) in UnpackProxyMessageHead()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/fuzztest/transproxyonmessagereceived_fuzzer/
H A Dtransproxyonmessagereceived_fuzzer.cpp44 static void InitProxyMessageHead(const uint8_t *data, size_t size, ProxyMessageHead *proxyMessageHe… in InitProxyMessageHead()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/
H A Dsoftbus_proxychannel_message_test.cpp399 ProxyMessageHead msg;
437 ProxyMessageHead msg;
1092 ProxyMessageHead msg;
1093 memset_s(&msg, sizeof(ProxyMessageHead), 0, sizeof(ProxyMessageHead));
H A Dsoftbus_proxychannel_manager_test.cpp845 ProxyMessageHead *msgHead = (ProxyMessageHead *)SoftBusCalloc(sizeof(ProxyMessageHead));
H A Dtrans_proxy_message_test.cpp338 ProxyMessageHead msg;
376 ProxyMessageHead msg;