udp_new() — Create a new UDP pcb


struct udp_pcb *udp_new (void);


Creates a new connection identifier (PCB) which can be used for UDP communication. The PCB is not active until it has either been bound to a local address or connected to a remote address.

Return value

Returns the new PCB. If memory is not available for creating the new PCB, NULL is returned.