Refactoring the DTLS over netmq