netconn_new_with_proto_and_callback() function
Create a new netconn (of a specific type) that has a callback function. The corresponding pcb is also created.
Arguments
t
the type of 'connection' to create (@see enum netconn_type)
proto
the IP protocol for RAW IP pcbs
callback
a function to call on status changes (RX available, TX'ed)
Return value
a newly allocated struct netconn or NULL on memory error
Examples
netconn_new_with_proto_and_callback() is referenced by 7 libraries and example projects: