udp_send() — Send UDP packet


err_t udp_send (struct udp_pcb *pcb , struct pbuf *p );


Sends the pbuf p to the remote host associated with pcb. The pbuf is not deallocated.

Return value

This function returns ERR_OK on success; but may return ERR_MEM if there is insufficient memory to prepend a UDP header, or ERR_RTE if no suitable outgoing network interface could be found to route the packet on.