Synopses & Reviews
As networks, devices, and systems continue to evolve, software engineers face the unique challenge of creating reliable distributed applications within frequently changing environments. C++ Network Programming, Volume 1,
provides practical solutions for developing and optimizing complex distributed systems using the ADAPTIVE Communication Environment (ACE), a revolutionary open-source framework that runs on dozens of hardware platforms and operating systems.
This book guides software professionals through the traps and pitfalls of developing efficient, portable, and flexible networked applications. It explores the inherent design complexities of concurrent networked applications and the tradeoffs that must be considered when working to master them.
C++ Network Programming begins with an overview of the issues and tools involved in writing distributed concurrent applications. The book then provides the essential design dimensions, patterns, and principles needed to develop flexible and efficient concurrent networked applications. The book's expert author team shows you how to enhance design skills while applying C++ and patterns effectively to develop object-oriented networked applications.
Readers will find coverage of:
- C++ network programming, including an overview and strategies for addressing common development challenges The ACE Toolkit
- Connection protocols, message exchange, and message-passing versus shared memory
- Implementation methods for reusable networked application services
- Concurrency in object-oriented network programming
- Design principles and patterns for ACE wrapper facades
With this book, C++ developers have at their disposal the most complete toolkit available for developing successful, multiplatform, concurrent networked applications with ease and efficiency.
ACE stands for the Adaptive Communicative Environment and is a software toolkit that provides a number of patterns, libraries, and frameworks creating portability on dozens of hardware and operating system platforms. This text provides an in-depth guide to ACE with real-world code examples.
System requirements for accompanying computer disc: preferred system requirements: Pentium PC with Windows NT server 4.0; 32 MB RAM; Windows NT 4.0 option packx; Visual C++ 5.0 or above; Microsoft SQL server 7.0. Minimum system requirements: 486 PC with Windows 95; 20 MB RAM; Windows NT 4.0 option packx. xIncluded on CD-ROM. Includes bibliographical references and index.
About the Author
Dr. Douglas C. Schmidt
is the original developer of ACE and The ACE ORB (TAO). He is a professor at Vanderbilt University, where he studies patterns, optimizations, middleware, and model-based tools for distributed real-time and embedded systems. He is a former editor-in-chief of C++ Report
and columnist for C/C++ Users Journal.
Stephen D. Huston is an internationally recognized expert in networked application development. He has more than 25 years of software development experience, focusing on network protocol and C++ networked application development in a wide range of hardware and software environments. Steve has been working with the ACE development team for over 10 years since founding Riverace Corporation, the premier provider of ACE support, training, and consulting services.
Table of Contents
(NOTE: All chapters end with a Summary.)
About This Book.
Design Challenges, Middleware Solutions, and ACE.
Challenges of Networked Applications.
Networked Application Design Dimensions.
Object-Oriented Middleware Solutions.
An Overview of the ACE Toolkit.
Example Application: A Networked Logging Service.
I. OBJECT-ORIENTED NETWORK PROGRAMMING. 1. Communication Design Dimensions.
Connectionless versus Connection-oriented Protocols.
Synchronous versus Asynchronous Message Exchange.
Message Passing versus Shared Memory. 2. An Overview of the Socket API.
An Overview of Operating System IPC Mechanisms.
The Socket API.
Limitations of the Socket API. 3. The ACE Socket Wrapper Facades.
The ACE Addr and ACE INET Addr Classes.
The ACE IPC SAP Class.
The ACE SOCK Class.
The ACE SOCK Connector Class.
The ACE SOCK Stream and ACE SOCK IO Classes..
The ACE SOCK Acceptor Class. 4. Implementing the Networked Logging Service.
The ACE Message Block Class.
The ACE InputCDR and ACE OutputCDR Classes.
The Initial Logging Server.
The Client Application.
II. CONCURRENT OBJECT-ORIENTED NETWORK PROGRAMMING. 5. Concurrency Design Dimensions.
Iterative, Concurrent, and Reactive Servers.
Processes versus Threads.
Process/Thread Spawning Strategies.
User, Kernel, and Hybrid Threading Models.
Time-shared and Real-time Scheduling Classes.
Task- vs. Message-based Architectures. 6. An Overview of Operating System Concurrency Mechanisms.
Synchronous Event Demultiplexing.
Limitations with OS Concurrency Mechanisms. 7. The ACE Synchronous Event Demultiplexing Wrapper Facades.
The ACE Handle Set Class.
The ACE Handle Set Iterator Class.
The ACE::select() Methods. 8. The ACE Process Wrapper Facades.
The ACE Process Class.
The ACE Process Options Class.
The ACE Process Manager Class. 9. The ACE Threading Wrapper Facades.
The ACE Thread Manager Class.
The ACE Sched Params Class.
The ACE TSS Class. 10. The ACE Synchronization Wrapper Facades.
The ACE Guard Classes.
The ACE Mutex Classes.
The ACE Readers/Writer Lock Classes.
The ACE Semaphore Classes.
The ACE Condition Variable Classes. A Design Principles for ACE C++ Wrapper Facades.
Use Wrapper Facades to Enhance Type Safety.
Simplify for the Common Case.
Use Hierarchies to Enhance Design Clarity and Extensibility.
Hide Platform Differences Whenever Possible.
Optimize for Efficiency. B The Past, Present, and Future of ACE.
The Evolution of ACE.
The Road Ahead.
Concluding Remarks. Glossary.