udp_recv_fn is only used within LwIP.
 
Symbols
loading...
Files
loading...

udp_recv_fn

Function prototype for udp pcb receive callback functions addr and port are in same byte order as in the pcb The callback is responsible for freeing the pbuf if it's not used any more. ATTENTION: Be aware that 'addr' might point into the pbuf 'p' so freeing this pbuf can make 'addr' invalid, too.

Syntax

typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);

References

LocationReferrerText
udp.h:77
typedef void (*udp_recv_fn)(void *arg, struct udp_pcb *pcb, struct pbuf *p,
udp.c:1158udp_recv()
udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg)
udp.h:110
udp_recv_fn recv;
udp.h:128
void udp_recv (struct udp_pcb *pcb, udp_recv_fn recv,