HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
PDF The popular standard, used most often with the free Acrobat® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
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:
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.
(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.Overview.
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.Overview.
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.
MultiProcessing Mechanisms.
MultiThreading Mechanisms.
Synchronization Mechanisms.
Limitations with OS Concurrency Mechanisms.
7. The ACE Synchronous Event Demultiplexing Wrapper Facades.Overview.
The ACE Handle Set Class.
The ACE Handle Set Iterator Class.
The ACE::select() Methods.
8. The ACE Process Wrapper Facades.Overview.
The ACE Process Class.
The ACE Process Options Class.
The ACE Process Manager Class.
9. The ACE Threading Wrapper Facades.Overview.
The ACE Thread Manager Class.
The ACE Sched Params Class.
The ACE TSS Class.
10. The ACE Synchronization Wrapper Facades.Overview.
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.Overview.
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.