Chapter 4. Implementing the Networked Logging Service

Chapter Synopsis

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.

4.1 Overview

Most networked applications perform the following activities:

• Establish connections actively and passively

• Exchange data with peer applications

• Manage buffers of data ...

Get C++ Network Programming, Volume 1: Mastering Complexity with ACE and Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.