Topic: C# wrapper -- non-blockling
I am working on building a DTLS client with C#.
It happens that if the server is not running, my client will block at connect() --...--> amtRecv = con.Receive(msg, msg.Length, 0);, which is reasonable in blocking IO. However, when I tried to turn to non-blocking IO, I cannot find wolfSSL_set_using_nonblock in the C# wrapper. I looked up and found the example of IOcallback: https://github.com/wolfSSL/wolfssl/blob … llbacks.cs.
However, I am not really understand how should I use it for setting non-blocking socket. Is this right solution? And is there any example?
After all, it will be great if there is same approach for wrapper to set non-blocking IO.