You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Jacobus Geluk <ja...@gmail.com> on 2007/10/12 16:44:11 UTC
qpid on Mac OS X fails because epoll is not available on OSX
I would like to use qpid in a C++ project on Mac OS X, but I can't compile
it since sys/epoll.h is missing. The epoll mechanism is not available on Mac
OS X, will qpid use kqueue for such platforms?
Regards,
Jacobus Geluk
Re: qpid on Mac OS X fails because epoll is not available on OSX
Posted by Andrew Stitcher <as...@redhat.com>.
On Wed, 2007-10-17 at 10:20 -0400, Carl Trieloff wrote:
> The project intends to provide a poll based implementation other
> platforms, most likely with
> client support first.
Actually the client and broker are now using the same underlying network
IO layer. So implementing a poller should give you both client and
broker for that platform.
>
> We where using a wrapper lib and run into to many issues, so we have
> moved to
> create our own platform support for IO. The design is intended to be
> portable, however
> currently we only have a epoll implementation of it (as you note). You
> are welcome to contribute
> implementations of the Poller.h interface for your platform.
Specifically what needs implementing for each platform is an
xxxPoller.cpp which implements the interface in
cpp/src/qpid/sys/Poller.h. The current Linux implementation using epoll
is in cpp/src/qpid/sys/epoll/EpollPoller.cpp and should serve as a
guide.
There is still some vestigial network IO code which uses the APR library
- this is deprecated in qpid and is no longer used although hasn't
actually been removed from the code base (it will be soon). Please don't
use it.
If you do want to get involved with qpid this would be a great and
productive way to start, the more platforms we support the better. We'd
be delighted to have you on board and to give you a helping hand.
Andrew
Re: qpid on Mac OS X fails because epoll is not available on OSX
Posted by Carl Trieloff <cc...@redhat.com>.
The project intends to provide a poll based implementation other
platforms, most likely with
client support first.
We where using a wrapper lib and run into to many issues, so we have
moved to
create our own platform support for IO. The design is intended to be
portable, however
currently we only have a epoll implementation of it (as you note). You
are welcome to contribute
implementations of the Poller.h interface for your platform.
Someone else had also spoking to me about contributing in this area when
talking about the project
at an event. So please feel free to add a implementation of poller.h for
OS X and I am
sure the guys that have worked in the area will help you with any issues
to get it into Qpid.
thanks for the interest in the project
Carl.
Jacobus Geluk wrote:
> I would like to use qpid in a C++ project on Mac OS X, but I can't compile
> it since sys/epoll.h is missing. The epoll mechanism is not available on Mac
> OS X, will qpid use kqueue for such platforms?
>
> Regards,
> Jacobus Geluk
>
>