createFileDescriptorEvent

Creates an event to wait on an existing file descriptor.

The file descriptor usually needs to be a non-blocking socket for this to work.

Parameters

file_descriptor int

The Posix file descriptor to watch

event_mask FileDescriptorEvent.Trigger

Specifies which events will be listened for

Return Value

Returns a newly created FileDescriptorEvent associated with the given file descriptor.

Meta