tcp_new_ip_type() function
Creates a new TCP protocol control block but doesn't place it on any of the TCP PCB lists. The pcb is not put on any list until binding using tcp_bind().
Arguments
type
IP address type, see
lwip_ip_addr_type
definitions. If you want to listen to IPv4 and IPv6 (dual-stack) connections, supply IPADDR_TYPE_ANY as argument and bind to
IP_ANY_TYPE
.
Return value
a new tcp_pcb that initially is in state CLOSED