Question

Just read Douglas R. Schmidt’s paper on the reactor pattern and I'd like to see a good example actually implemented to clear some questions up. I spent some time searching for a fully implemented example but haven't been able to find one. If someone's already implemented this and is willing to share the code that would be greatly appreciated. Or, of course, a link to an example in C++ would be great as well.

Était-ce utile?

La solution

You will find working examples of the Reactor pattern implementation in the, freely available, source of the ACE framework, developed by Douglas R. Schmidt: http://www.dre.vanderbilt.edu/~schmidt/ACE.html

In his book "C++ Network Programming, Volume 2: Systematic Reuse with ACE and Frameworks" Douglas R. Schmidt gives detailed explanation of the implementation of the Logger example project (included in ACE), both implemented as a Reactor and Proactor if I remember correctly - but I read the book a few years ago.

Autres conseils

Look at Boost.Asio

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top