[#DTLSv1_listen]
= DTLSv1&lowbar;listen
:mrdocs:

Statelessly listen for a new DTLS ClientHello and verify the cookie exchange&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
DTLSv1&lowbar;listen(
    xref:SSL.adoc[SSL]* s,
    xref:BIO_ADDR.adoc[BIO&lowbar;ADDR]* client);
----

== Return Value

&gt;&equals;1 when the handshake may continue (e&period;g&period; via SSL&lowbar;accept), 0 to retry, or &lt;0 on fatal error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Newly allocated SSL with read&sol;write BIOs set (typically an unconnected datagram BIO)&period;
| *client*
| Receives the peer address when a verified ClientHello is accepted&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
