libqb  1.0.6
Data Fields
qb_ipcs_poll_handlers Struct Reference

A set of callbacks that need to be provided (only job_add can be #NULL) whenever the IPC server is to be run (by the means of qb_ipcs_run). More...

#include <qbipcs.h>

Collaboration diagram for qb_ipcs_poll_handlers:
Collaboration graph

Data Fields

qb_ipcs_job_add_fn job_add
 
qb_ipcs_dispatch_add_fn dispatch_add
 
qb_ipcs_dispatch_mod_fn dispatch_mod
 
qb_ipcs_dispatch_del_fn dispatch_del
 

Detailed Description

A set of callbacks that need to be provided (only job_add can be #NULL) whenever the IPC server is to be run (by the means of qb_ipcs_run).

It is possible to use accordingly named functions defined in qbloop.h module or integrate with other existing (like GLib's event loop) or entirely new code – see the subtle distinction amongst the possible event loops pointed out in the introductory comment at qbloop.h.

At that occasion, please note the correlation of QB_IPCS_RATE_FAST etc. symbolic names with said advisory effect of the priorities in the native implementation. This correspondence will not be this intuitively seemless if some other event loop implementation is hooked in given that it abids them strictly as mentioned (e.g. GLib's event loop over poll'able sources). Differences between the two paradigms should also be accounted for when the requirement to swap the event loop implementations arises.

Examples
ipcserver.c.

Field Documentation

◆ dispatch_add

qb_ipcs_dispatch_add_fn qb_ipcs_poll_handlers::dispatch_add

◆ dispatch_del

qb_ipcs_dispatch_del_fn qb_ipcs_poll_handlers::dispatch_del

◆ dispatch_mod

qb_ipcs_dispatch_mod_fn qb_ipcs_poll_handlers::dispatch_mod

◆ job_add

qb_ipcs_job_add_fn qb_ipcs_poll_handlers::job_add
Examples
ipcserver.c.

The documentation for this struct was generated from the following file: