MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / udp_sendto_INLWIP

Function udp_sendto_INLWIP

modules/network/socket/lwip/modLwipSafe.c:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234static err_t udp_sendto_INLWIP(struct tcpip_api_call_data *tcpMsg)
235{
236 LwipMsg msg = (LwipMsg)tcpMsg;
237 struct pbuf *p = pbuf_alloc(PBUF_TRANSPORT, msg->len, PBUF_RAM);
238 c_memcpy(p->payload, msg->data, msg->len);
239 msg->err = udp_sendto(msg->udpPCB, p, &msg->addr, msg->port);
240 pbuf_free_safe(p);
241}
242
243void udp_sendto_safe(struct udp_pcb *udpPCB, const void *data, uint16_t len, ip_addr_t *dst, uint16_t port, err_t *err)
244{

Callers

nothing calls this directly

Calls 1

pbuf_free_safeFunction · 0.85

Tested by

no test coverage detected