https://github.com/openssl/openssl/blob/master/demos/dtlslis...
It would become much more practical if it were integrated with libuv or libevent.