Chapter 4. Implementing the Networked Logging Service
This chapter presents the first implementation of our networked logging service. We illustrate how to send, receive, and process log records in a portable, correct, and efficient manner by combining the ACE Socket wrapper facades from Chapter 3 with other ACE classes that handle message buffering and (de)marshaling. We refine this example throughout the rest of the book to illustrate common issues and problems that need to be resolved when developing object-oriented networked applications.
Most networked applications perform the following activities:
• Establish connections actively and passively
• Exchange data with peer applications
• Manage buffers of data ...