Make DTLSv1_listen a first class function and change its type