I am replacing net_socket APIs with libuv asyc network library.
For handshake on server, I am setting bio with mbedtls_ssl_set_bio and returning MBEDTLS_ERR_SSL_WANT_READ when read callback is called by handshake function mbedtls_ssl_handshake
I am able to read 310 bytes of unwrapped data on read callback, but it hangs after that.
Is there any async net example I can refer to?
that might be a stupid question, but are you sure libuv is suitable for embedded programming? it powers node.js so it might be a little “big” for a small 32 bit mcu.