vibe.d beta banner
get vibe.d
0.7.30

Function 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.

Prototype

FileDescriptorEvent createFileDescriptorEvent(
  int file_descriptor,
  FileDescriptorEvent.Trigger event_mask
);

Parameters

NameDescription
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.

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.