Hi Deepak,
Do you mean event driven bio callbacks?
I believe that your case is similar to an asynchronous non blocking socket.
- Perhaps have the lwip recv callback put the data in a shared buffer, and Mbed TLS will read from that buffer, when needed?
- How about implementing the recv as non blocking, and Mbed TLS tries to read from the “socket”, it will either get the data, or the WANT_READ in case no data.
Regards