Home
last modified time | relevance | path

Searched refs:recdata (Results 1 – 2 of 2) sorted by relevance

/device/board/talkweb/niobe407/applications/303_network_udptest/
Dudp_test.c37 char *recdata = (char *)malloc(p->len * sizeof(char) + 1); in udp_receive_callback() local
38 if (recdata != NULL) { in udp_receive_callback()
42 memcpy_s(recdata, p->len, p->payload, p->len); in udp_receive_callback()
43 recdata[p->len] = '\0'; in udp_receive_callback()
45 … *((uint8_t *)&addr->addr + IP_ADDR_3), *((uint8_t *)&addr->addr + IP_ADDR_4), port, recdata); in udp_receive_callback()
46 free(recdata); in udp_receive_callback()
DREADME_zh.md215 char *recdata = 0;
218 recdata=(char *)malloc(p->len*sizeof(char)+1);
219 if(recdata != NULL)
223 memcpy_s(recdata, p->len, p->payload, p->len);
224 recdata[p->len] = '\0';
226 … *((uint8_t *)&addr->addr + 2), *((uint8_t *)&addr->addr + 3), port, recdata);
228 free(recdata);