Home
last modified time | relevance | path

Searched refs:sndPktBuff (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/
H A Dcoap_app.c223 CoapReadWriteBuffer sndPktBuff = {0}; in CoapSendMessageEx() local
225 if (sndPktBuff.readWriteBuf == NULL) { in CoapSendMessageEx()
229 sndPktBuff.size = COAP_MAX_PDU_SIZE; in CoapSendMessageEx()
230 sndPktBuff.len = 0; in CoapSendMessageEx()
234 free(sndPktBuff.readWriteBuf); in CoapSendMessageEx()
246 free(sndPktBuff.readWriteBuf); in CoapSendMessageEx()
247 sndPktBuff.readWriteBuf = NULL; in CoapSendMessageEx()
251 coapRequest.data = sndPktBuff.readWriteBuf; in CoapSendMessageEx()
252 coapRequest.dataLength = sndPktBuff.len; in CoapSendMessageEx()
254 free(sndPktBuff.readWriteBuf); in CoapSendMessageEx()
[all …]
H A Dcoap_adapter.c608 … int32_t CoapSoftBusBuildMessage(const CoapResponseInfo *resqInfo, CoapReadWriteBuffer *sndPktBuff) in CoapSoftBusBuildMessage() argument
611 resqInfo->payloadLen >= sndPktBuff->size) { in CoapSoftBusBuildMessage()
620 outBuf.readWriteBuf = sndPktBuff->readWriteBuf; in CoapSoftBusBuildMessage()
621 outBuf.size = sndPktBuff->size; in CoapSoftBusBuildMessage()
635 sndPktBuff->len = outBuf.len; in CoapSoftBusBuildMessage()
658 CoapReadWriteBuffer *sndPktBuff, bool isAck) in BuildCoapPktEx() argument
660 if (param == NULL || sndPktBuff == NULL || sndPktBuff->readWriteBuf == NULL) { in BuildCoapPktEx()
677 if (CoapCreateHeader(&respPkt, &outParam, sndPktBuff) != DISCOVERY_ERR_SUCCESS) { in BuildCoapPktEx()
687 if (CoapSoftBusBuildMessage(&respInfo, sndPktBuff) != DISCOVERY_ERR_SUCCESS) { in BuildCoapPktEx()
692 if (sndPktBuff->len >= sndPktBuff->size) { in BuildCoapPktEx()
[all …]
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/mini_discover/
H A Dcoap_adapter.h84 …(const CoapBuildParam *param, const char *pktPayload, CoapReadWriteBuffer *sndPktBuff, bool isAck);