Topic: DTLS under Windows
I'm trying to write a client-server application under Windows 8, using DTLS protocol.
The server has to support multiple clients connecting to the same UDP port. I have set AES-128 encryption.
My starting point was the example provided in the two file server-dtls-threaded.c and client-dtls.c under the repository. I've just modified those file in order to make them compatible with Winsock32 and the Windows API for thread management. You can find attached both file modified by me.
Notice that the line with:
res = setsockopt(args->activefd, SOL_SOCKET, SO_REUSEPORT, &on, len);
has been removed on the server because Winsock32 doesn't support the SO_REUSEPORT option.
With these file, the clients are not able to complete the connection, beacuse the related threads on the server are created but they remains blocked in the function:
I'm not able to understand why. Please, could you help me?