Typedefs | |
| typedef void(* | MqEventF )(ContextSP) |
| a prototype for a EventChecking procedure | |
| typedef void(* | EventCreateF )(ContextSP) |
| prototype for a EventQueueing procedure | |
Enumerations | |
| enum | MqWaitOnEventE { MQ_WAIT = (1 << 0), MQ_FOREVER = (1 << 1) } |
| wait for an event? More... | |
Functions | |
| MQ_EXTERN MqErrorE | MqEventCheck (MqSP const msgque, const MqIoSelectE type, struct timeval *timeout, EventCreateF proc) |
| check for a new event on all MqS objects currently defined. | |
| MQ_EXTERN MqErrorE | MqProcessEvent (MqSP const msgque, const time_t timeout, const MqWaitOnEventE wait) |
| waiting for an incoming packet on the single file-handle belonging to the MqS object. | |
the event-queue have to be linked into an existing event-processing infrastructure. the linking is done by defining prototypes for two independent procedures:
Tcl_DoOneEvent)Tcl_QueueEvent)
|
|
prototype for a EventQueueing procedure
|
|
|
wait for an event?
|
|
||||||||||||||||||||
|
check for a new event on all MqS objects currently defined.
the checking is done by do a 'select' on all file-handles owned by the MqS objects and invoking the
|
|
||||||||||||||||
|
waiting for an incoming packet on the single file-handle belonging to the MqS object. this procedure is used to wait for (e.g. MqWaitOnEventE == MQ_WAIT) or check (e.g. no MQ_WAIT) the file-handle for an incoming event. if an event occurs the header of the Msgque packet is parsed and the according service-handle is called. if MqWaitOnEventE == MQ_FOREVER the procedure will never return, accept for error processing.
|
1.3.8-20040928