yev_set_fd()

yev_set_fd()#

yev_set_fd() assigns a file descriptor to a given event, applicable only for yev_create_read_event() and yev_create_write_event().

Prototype

void yev_set_fd(
    yev_event_h yev_event,
    int         fd
);

Parameters

Key

Type

Description

yev_event

yev_event_h

The event handle to which the file descriptor will be assigned.

fd

int

The file descriptor to be associated with the event.


Return Value

This function does not return a value.

Notes

This function should only be used with events created using 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