vibe.d beta banner
get vibe.d
0.10.1

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
) nothrow @safe;

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

Returns

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

Authors

Sönke Ludwig

Copyright

© 2012-2020 Sönke Ludwig

License

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