Modules | |
| group | MqIoS API |
| building, splitting, reading and sending of a Msgque packet. | |
| group | MqReadS API |
| reading a Msgque packet and splitting it into several items. | |
| group | MqSendS API |
| collecting and sending all items of a Msgque packet | |
| group | MqErrorS API |
| the MqErrorS API is used to manage error messages. | |
Classes | |
| struct | MqS |
| the main libFreiburg 2.0 object. More... | |
Defines | |
| #define | MQ_SAVE_ERROR(msgque) ((msgque)&&(msgque)->error?(msgque)->error:NULL) |
| get a MqErrorS object from a MgS in a save manner | |
Typedefs | |
| typedef MqErrorE(* | ContextCreateF )(MqBufferLSP, ContextSP *) |
| a prototype for a ContextCreate procedure | |
| typedef void(* | ContextDeleteF )(ContextSP *) |
| a prototype for a ContextDelete procedure | |
| typedef MqErrorE(* | MqTokenF )(MqSP msgque, void *data) |
| generic token processing function prototype | |
| typedef MqS | MqS |
| the main libFreiburg 2.0 object. | |
Enumerations | |
| enum | MqOpt { MQ_PARENT } |
| option used by MqGetOpt More... | |
| enum | MqE { MQ_CLIENT, MQ_SERVER } |
| the private MqS type member More... | |
| enum | MqIoSelectE { MQ_SELECT_RECV, MQ_SELECT_SEND } |
| 'select' type for reading or writing More... | |
Functions | |
| MQ_EXTERN MqErrorE | MqCreate (ContextSP context, MqBufferLSP argv, MqSP *out) |
| create a libFreiburg 2.0 object | |
| MQ_EXTERN void | MqDelete (MqSP *msgqueP) |
delete a libFreiburg 2.0 object
| |
| MQ_EXTERN MQ_PTR | MqGetOpt (MqSP const msgque, MqOpt opt) |
| get option for, MqOpt | |
| MQ_EXTERN MqTransSP const | MqGetTransPtr (MqSP const msgque) |
| get transaction pointer | |
| MQ_EXTERN void | MqDataLog (MqSP msgque, const char *prefix) |
| log MqS for debugging | |
| MQ_EXTERN MqErrorE | MqServiceCreate (MqSP const msgque, MQ_STR token, MqTokenF proc, MQ_PTR data) |
| create a service handle | |
| MQ_EXTERN MqErrorE | MqServiceDelete (MqSP const msgque, MQ_STR token) |
| delete service handle | |
the MqS object is created just after the ContextS object usually in the procedure ContextCreate. every external ContextS object has only one MqS object and every MqS object has only one ContextS object. the MqS object will be created with the MqCreate and will be deleted with the MqDelete procedure. during creation of a MqS object additional objects will be created too:
| object-type | member | description |
| MqSendS | send | used for building and sending a Msgque packet |
| MqReadS | read | used for reading and splitting a Msgque packet |
| MqIoS | io | used for doing socket communication |
| MqErrorS | error | used for collection of error data |
| MqStatS | statistic | used for collection of statistical data |
MqGetReturnToken
|
|
the main libFreiburg 2.0 object.
the MqS object is created just after the ContextS object usually in the procedure
|
|
|
the private MqS type member every libFreiburg 2.0 application need a type to separate the basic behaviour:
|
|
|
'select' type for reading or writing
|
|
|
option used by MqGetOpt
|
|
||||||||||||||||
|
create a libFreiburg 2.0 object
|
|
|
delete a libFreiburg 2.0 object
|
|
||||||||||||||||||||
|
create a service handle
|
|
||||||||||||
|
delete service handle
|
1.3.8-20040928