Function createFileDescriptorEvent
Creates an event to wait on an existing file descriptor.
FileDescriptorEvent createFileDescriptorEvent
(
int file_descriptor,
FileDescriptorEvent . Trigger event_mask
) nothrow @safe;
The file descriptor usually needs to be a non-blocking socket for this to work.
Parameters
Name | Description |
---|---|
file_descriptor | The Posix file descriptor to watch |
event_mask | Specifies which events will be listened for |
Returns
Returns a newly created FileDescriptorEvent associated with the given file descriptor.