| Safe Haskell | Safe | 
|---|---|
| Language | Haskell2010 | 
System.KQueue
Description
This module contains a low-level binding to the kqueue interface.
 It stays close to the C API, changing the types to more native
 Haskell types, but not significantly changing it.
 See the kqueue man page or the examples in examples/ for usage
 information.
 For a higher-level binding, see System.KQueue.HighLevel.
Documentation
A kernel event.
Constructors
| KEvent | |
| Fields 
 | |
The types of kernel events.
The actions to perform on the event.
The filter specific flags.
Arguments
| :: KQueue | The kernel queue to operate on. | 
| -> [KEvent] | The list of events to start monitoring, or changes to retrieve. | 
| -> Int | The maximum number of events to retrieve. | 
| -> Maybe NominalDiffTime | Timeout. When nothing, blocks until an event has occurred. | 
| -> IO [KEvent] | A list of events that have occurred. | 
Add events to monitor, or retrieve events from the kqueue. If an
 error occurs, will throw a KQueueException if there is no room in
 the returned event list. Otherwise, will set EvError on the event
 and add it to the returned event list.
data KQueueException Source #
Instances