Hi, Please find attached Samples.tgz file which contains sample code and binaries that you can use to reproduce the problem reported. Here is a brief summary of the included files:
Samples/ ├── Linux │ │ ├── dtls_udp_echo.c │ └── Make.sample └── Windows └── dtls.zip You can run the client program on a Linux host. Using usage below where -p represents ports and -n represents packets to send ./client -r 10.10.100.116 -L 0.0.0.0 -p 23232 -v -l 1400 -n 100 You can run 2 -3 client instances from the same host (or different host) The windows source code, VC project files are included in Samples/Windows/dtls.zip The server listens by default on port 23232 You can run the server binary from dtls\windows\vc_proj\Debug\dtls.exe (All server certs are already included in Debug directory) As reported earlier, the problem is server does not accept any new client connections until a client connection is being processed. (You can compile the same windows server simple_dtls_udp_server.c on linux too using the Make.sample instructions and see that this is not an issue on Linux). I had to remove binaries (linux and windows) due to size limitations for post messages. Note: Please refer to this link from Microsoft http://msdn.microsoft.com/en-us/library/ms740621%28v=vs.85%29.aspx This may be a problem in general on windows on using SO_REUSEADDR. If there are any known workarounds or alternatives we can use that will be great. -Yogi
Samples.tgz
Description: GNU Zip compressed data