vibe.d beta banner
get vibe.d
0.8.0

Asynchronous I/O that doesn’t get in your way, written in D

Function createFileDescriptorEvent

Creates an event to wait on an existing file descriptor.

FileDescriptorEvent createFileDescriptorEvent (
  int file_descriptor,
  FileDescriptorEvent.Trigger event_mask,
  FileDescriptorEvent.Mode event_mode = cast(Mode)1
);

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

Parameters

NameDescription
file_descriptor The Posix file descriptor to watch
event_mask Specifies which events will be listened for
event_mode Specifies event waiting mode

Returns

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

Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.