[openamq-dev] Get a FD from OpenAMQ
Martin Sustrik
sustrik at imatix.com
Fri Jan 4 11:27:00 CET 2008
Malinga,
You may have noticed there have been a discussion of this issue on the
list few weeks ago.
Basically, getting the file descriptor from the OpenAMQ is theoretically
possible, however, it is rather complex to implement (from both design
and coding point of view).
On the other hand, you can imagine a workaround using one thread to wait
for OpenAMQ messages and signal the client thread (the one doing the
select) via local socketpair. This should be fairly simple to implement.
I am busy now working on 0MQ project, however, if you are interested in
implementing the workaround, I'll be happy to guide you through the
process. BTW, there are other people in the OpenAMQ community having the
same problem, so making the workaround public would be highly appreciated.
Martin
Malinga wrote:
> Hi,
>
> I have some strange question, but I need to ask this from you all. I
> have a set of TCP and UDP connections and these are in a kernel
> select(...) call. My question is can we get a file descriptor from the
> openamq so i can happily put that FD into my select(...). My purpose
> is to trigger the FD when data available.
>
> -Malinga
>
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage.
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
> ------------------------------------------------------------------------
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>
More information about the openamq-dev
mailing list