how can we get fd of eventqueue?

Options
mktdata
mktdata Contributor
edited July 11 in RFA

Hi team,

We are using the RFA 8.2 C++ API along with Dacs 7.8.
When dispatching events from the EventQueue, we use the following method:

eventQueue->dispatch(16);

Is there a way to obtain the file descriptor (fd) of this queue so that we can monitor when it is set and dispatch events accordingly?

Thanks

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @mktdata

    Thank you for reaching out to us.

    I checked the RFA Reference Guide and found that it can't return a file descriptor.

    You may check the Notification Clients feature in the RFA Developer Guide.

    6.4.1.7 Notification Clients

    In some cases, application developers may wish to integrate the event dispatching logic into an existing event dispatching mechanism; such as a Windows message loop or a select()-based event loop. To simplify this task the Event Distribution Model has the concept of a Notification Client. An application can register a notification client with an event queue or an event queue group. Every time a new message is posted to the queue (or one of the queues within the group), an application-defined notification client will be called