Chapter 8. The ACE Proactor Framework

CHAPTER SYNOPSIS

This chapter outlines the asynchronous I/O mechanisms available on today’s popular OS platforms and then describes the design and use of the ACE Proactor framework. This framework implements the Proactor pattern [POSA2], which allows event-driven applications to efficiently demultiplex and dispatch service requests triggered by the completion of asynchronous I/O operations. This chapter shows how to enhance our client logging daemon to use a proactive model that (1) initiates I/O operations, (2) demultiplexes I/O completion events, and (3) dispatches those completion events to application-defined completion handlers that process the results of asynchronous I/O operations.

8.1 Overview ...

Get C++ Network Programming, Volume 2: Systematic Reuse with ACE and Frameworks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.