udp_send() function
Sends the pbuf p using UDP. The pbuf is not deallocated. The datagram will be sent to the current remote_ip & remote_port stored in pcb. If the pcb is not bound to a port, it will automatically be bound to a random port. @see udp_disconnect() udp_sendto()
Arguments
pcb
UDP PCB used to send the data.
p
chain of pbuf's to be sent.
Return value
lwIP error code. - ERR_OK. Successful. No error occurred. - ERR_MEM. Out of memory. - ERR_RTE. Could not find route to destination address. - ERR_VAL. No PCB or PCB is dual-stack - More errors could be returned by lower protocol layers.
Examples
udp_send() is referenced by
6 libraries and example projects.
Functions calling udp_send()
Functions called by udp_send()
udp_send()
printf() all items filtered out
Data read by udp_send()
udp_send()
Type of udp_send()
udp_send()