Hi !
> normaly i do my own select() syscall to monitor network connections etc.
> now i add ggi support and cannot use select() anymore
> instead i have to use ggiEventPoll
> but now i cannot monitor my network connections anymore.
> is there no possibility to extract the filehandles out of ggi
> to monitor them myself and call ggiEventPoll whenever something
> happens on them ?
No, because some LibGII devices are polled in nature, which is handled by
LibGGI using a complex loop that combines polling and selecting to both
save ressources and still be responsive to polled sources.
What you are looking for is:
/* Wait for filedescriptors and LibGII events the the same time */
int giiEventSelect(gii_input_t inp, gii_event_mask *mask, int n,
fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
struct timeval *timeout);
It is a mix of EventPoll and select. You need to include gii-unix.h, as it is
a system specific thing.
As an alternative, you can open an fdselect input source that will send events
when data becomes available.
To use any of those functions, you will need ggiJoinInputs, which allows to
add LibGII-inputs to LibGGI target descriptors or to extract the LibGGI
internal input for use with LibGII-Functions (like EventSelect).
The latter is done using NULL as the input that should be joined.
CU, ANdy
--
Andreas Beck | Email : <[EMAIL PROTECTED]>