Go to the source code of this file.
IO Types.
Not all implementation support all mamaIoTypes.
MAMA_IO_READ: the socket is readable. MAMA_IO_WRITE: the socket is writable. MAMA_IO_CONNECT: the socket is connected MAMA_IO_ACCEPT: the socket accepted a connection MAMA_IO_CLOSE: the socket was closed MAMA_IO_ERROR: an error occurred MAMA_IO_EXCEPT: An exceptional event like out of band data occurred.
Enumerator |
---|
MAMA_IO_READ |
|
MAMA_IO_WRITE |
|
MAMA_IO_CONNECT |
|
MAMA_IO_ACCEPT |
|
MAMA_IO_CLOSE |
|
MAMA_IO_ERROR |
|
MAMA_IO_EXCEPT |
|
mamaIoType
IO Types.
Definition: io.h:44
typedef void |
( |
MAMACALLTYPE * |
mamaIoCb | ) |
|
Prototype for callback invoked by IO handler.
- Parameters
-
io | The mamaIo handle. |
ioType | The mamaIoType for the event. |
closure | Caller supplied closure. |
Create a IO handler.
If the underlying infrastructure does not support the requested mamaIoType, mamaIo_create returns MAMA_STATUS_UNSUPPORTED_IO_TYPE. For example RV only supports READ, WRITE, and EXCEPT. LBM supports all types except ERROR.
- Parameters
-
result | A pointer to the io handle. |
queue | The event queue for the io events. NULL specifies the Mama default queue. |
action | The callback to be invoked when an event occurs. |
descriptor | Wait for IO on this descriptor. |
ioType | Wait for occurrences of this type. |
closure | The closure that is passed to the callback. |