Hi Sravanthi, I have implemented this as follows:
One thread per listen socket, calling DTLSv1_listen. This thread spawns one thread per client and those treads call SSL_accept. The listening threads share a single SSL_CTX, and each call to SSL_new is protected by a mutex. Each SSL object has an associated mutex for SSL calls. Best regards, Fredrik On Wed, Dec 11, 2013 at 9:27 AM, Sravanthi <shravanti.re...@gmail.com>wrote: > I'm planning to implement an application that has multiple threads. This > application uses DTLS protocol. Can each DTLS handshake message go to > different thread or is it must that all the DTLS handshake messages should > be handled by single thread. Please let me know if anyone has done > something similar to this. > > Thanks, > Sravanthi >