[#SSL_get_event_timeout]
= SSL&lowbar;get&lowbar;event&lowbar;timeout
:mrdocs:

Report when an SSL object next needs timer&hyphen;driven processing (DTLS&sol;QUIC)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;get&lowbar;event&lowbar;timeout(
    xref:SSL.adoc[SSL]* s,
    timeval* tv,
    int* is&lowbar;infinite);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection to query&semi; non&hyphen;DTLS&sol;non&hyphen;QUIC objects report an infinite timeout&period;
| *tv*
| On success with a finite timeout, receives the relative time until SSL&lowbar;handle&lowbar;events should run (zero if due now)&period;
| *is&lowbar;infinite*
| Set to 1 when no timer is pending (`tv` unspecified), or 0 when `tv` is valid&period;
|===


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