[#ASYNC_WAIT_CTX_get_fd]
= ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;fd
:mrdocs:

Look up the wait file descriptor registered under `key&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;fd(
    xref:ASYNC_WAIT_CTX.adoc[ASYNC&lowbar;WAIT&lowbar;CTX]* ctx,
    void const* key,
    int* fd,
    void** custom&lowbar;data);
----

== Return Value

1 if a matching fd was found, or 0 otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Wait context to query&period;
| *key*
| Unique key previously passed to ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;set&lowbar;wait&lowbar;fd&period;
| *fd*
| Receives the registered OSSL&lowbar;ASYNC&lowbar;FD on success&period;
| *custom&lowbar;data*
| Receives the custom&lowbar;data pointer registered with the fd, or NULL&period;
|===


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