I've been working on the C++ broker/client port to Windows. At this
point, I'm working on the broker and have a question on how the
authors would like me to handle something.

Right now, the broker is arranged as a main program (qpidd.cpp) that
links with a shared library (libqpidbroker, and common). The main
program is in cpp/src/qpidd.cpp and the libqpidbroker code is
primarily in cpp/src/qpid/broker

The qpidd.cpp program has a significant chunk of posix-specific code
that has to change for Windows. In particular, options processing and
daemon usage. I was thinking to do this:

- Split the posix-specific code out to qpidd_posix.cpp, and make a
qpidd_windows.cpp with the Windows-specific pieces.

- The split may be helped by something like qpidd.h so the different
platforms implement the same class/API.

At this point, I'm wondering if the qpidd.cpp and related files should
go down into cpp/src/qpid/broker, or if you want to keep them in
cpp/src still. Any thoughts?

Thanks,
-Steve


Reply via email to