next up previous contents index
Next: 7.2.1 poll: Poll for Up: 7 Input/Output Interfaces Previous: 7.1.4 setsize: Set the

7.2 oskit_asyncio: Asynchronous I/O Interface

   

The oskit_asyncio interface provides interfaces in support of basic asynchronous I/O, based on registered callback objects (see Section 4.9). This can be used, for example, to implement Unix SIGIO or select or POSIX.1b aio.

This interface supports a notion of three kinds of interesting events: readability, writeability, and ``other'' exceptional conditions. These are defined via the flags:  OSKIT_ASYNCIO_READABLE,  OSKIT_ASYNCIO_WRITEABLE, and  OSKIT_ASYNCIO_EXCEPTION which are passed and returned in a mask in the various methods.

The oskit_asyncio COM interface inherits from IUnknown, and has the following additional methods:

poll
Poll for currently pending asynchronous I/O conditions.
add_listener
Add a callback object for async I/O events.
remove_listener
Remove a previously registered callback object.
readable
Returns the number of bytes that can be read.





Utah Flux Research Group