<--previous | contents | next-->

KEvents

The user program communicates with the event queue by way of KEvents. A set of KEvents are passed into the queue using the kevent() method to set up the conditions to monitor, and a set of KEvents are passed back to indicate which events have triggered.

The KEvent objects are analagous to the struct defined in kqueue(2).

Interface

KEvent(ident, flags=0, fflags=0, udata=None)

Note that "KEvent" in the definition above refers to a generic KEvent class - in practice, one of the KEvent classes defined below will be used instead.

All KEvents obey the same construction interface:

Some filters return filter-specific data through the .data attribute. Please see kqueue(2) for more information.

ERead

Returns whenever data is available to read.

EWrite

EWrite has no filter flags.

EVNode

fflags:

EProc

fflags:

ESignal

ESignal has no filter flags.


<--previous | contents | next--> (12/21/04)
PyOpenbsd v0.1 Manual