October 2002
Intermediate to advanced
384 pages
10h 27m
English
CHAPTER SYNOPSIS
This chapter describes the design and use of the ACE Reactor framework. This framework implements the Reactor pattern [POSA2], which allows event-driven applications to react to events originating from a number of disparate sources, such as I/O handles, timers, and signals. Applications override framework-defined hook methods, which the framework then dispatch to process events. We show how to implement a logging server using a reactor that (1) detects and demultiplexes different types of connection and data events from various event sources and (2) then dispatches the events to application-defined handlers that process the events.
The ACE Reactor framework simplifies the development ...
Read now
Unlock full access