On Thu, Jan 28, 2010 at 23:59, Venki Solaiyappan (svenki)
<[email protected]> wrote:
> KudosJ
>
> I am excited to use libevent for my apps,
>
> I am wondering if I can
>
> a)      Tag multiple events/fds to one callback handler (specifically, timer
> fd and shm queue fd etc..)

Of course, just pass the same function pointer.

> b)      If yes, how do I distinguish the events/fds in the callback handler.

The called function gets the file descriptor, event bitmask, and a
void* of your choosing as parameters. You haven't given enough
information to determine how exactly those should be used to solve
your problem.

> I don’t see the info of  how it can be done in the libevent blog/doc..
>
>
>
> Could you pls help?
>
>
>
> Thanks
>
> Venki
>
>
***********************************************************************
To unsubscribe, send an e-mail to [email protected] with
unsubscribe libevent-users    in the body.

Reply via email to