ASYNC_WAIT_CTX_set_wait_fd

Associate a waitable file descriptor with a key in the wait context.

Synopsis

Declared in <openssl/async.h>

int
ASYNC_WAIT_CTX_set_wait_fd(
    ASYNC_WAIT_CTX* ctx,
    void const* key,
    int fd,
    void* custom_data,
    void(* cleanup)(ASYNC_WAIT_CTX*, void const*, int, void*));

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxWait context to update.
keyUnique key identifying this wait fd.
fdFile descriptor to wait on.
custom_dataOptional application data for the cleanup callback.
cleanupOptional callback to release custom_data when the fd is cleared.