yev_get_fd()

yev_get_fd()#

yev_get_fd() retrieves the file descriptor associated with the given event.

Prototype

int yev_get_fd(
    yev_event_h yev_event
);

Parameters

Key

Type

Description

yev_event

yev_event_h

The event handle from which to retrieve the file descriptor.


Return Value

Returns the file descriptor associated with yev_event. If no file descriptor is set, the return value is undefined.

Notes

This function is typically used in conjunction with event-based operations such as yev_create_read_event() and yev_create_write_event().

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples