udp_new_ip_type() function
Create a UDP PCB for specific IP type. The pcb is not active until it has either been bound to a local address or connected to a remote address. @see udp_remove()
Arguments
type
IP address type, see
lwip_ip_addr_type
definitions. If you want to listen to IPv4 and IPv6 (dual-stack) packets, supply IPADDR_TYPE_ANY as argument and bind to
IP_ANY_TYPE
.
Return value
The UDP PCB which was created. NULL if the PCB data structure could not be allocated.