Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
This book focuses on ACE frameworks, providing thorough coverage of the concepts, patterns, and usage rules that form their structure. This book is a practical guide to designing object-oriented frameworks and shows developers how to apply frameworks to concurrent networked applications. This book also teaches how to use frameworks to write networked applications quickly, reducing development effort and overhead. It will be an invaluable asset to any C++ developer working on networked applications | C Network Programming Volume 1 Mastering Complexity with ACE and Patterns Douglas G Schmidt Stephen D. Huston Foreword by Steve Vinoskl --------------- _ C In-Depth Series Bjarne Stroustrup Contents List of Figures ix Foreword xi About This Book XV Chapter 0 Design Challenges Middleware Solutions and ACE 1 0.1 Challenges of Networked Applications 1 0.2 Networked Application Design Dimensions 5 0.3 Object-Oriented Middleware Solutions 7 0.4 An Overview of the ACE Toolkit 12 0.5 Example A Networked Logging Service 17 0.6 Summary 19 Part I Object-Oriented Network Programming 21 Chapter 1 Communication Design Dimensions 23 1.1 Connectionless versus Connection-Oriented Protocols 23 1.2 Synchronous versus Asynchronous Message Exchange 26 1.3 Message Passing versus SharedMemory 28 1.4 Summary 3 1 CONTENTS Chapter 2 2.1 2.2 The 2.3 Limi 2.4 An Overview of the SocketAPI An Overview of Operating System I PC Mechanisms Socket API tations of the Socket API Summary 33 33 34 37 43 Chapter 3 The ACE Socket Wrapper Facades 45 3.1 Overview 45 3.2 The ACE-Addr and ACE_INET_Addr Classes 49 3.3 The ACE-IPC-SAP Class 52 3.4 The ACE SOCK Class 54 3.5 The ACE.SOCK Connector Class 56 3.6 The ACE SOCK IO and ACE-SOCK Stream Classes 60 3.7 The ACE-SOCK Acceptor Class 64 3.8 Summary 68 Chapter 4 Implementing the Networked Logging Service 71 4.1 Overview 71 4.2 The ACE Message-Block Class 72 4.3 The ACEJnputCDR and ACE_OutputCDR Classes 76 4.4 The Initial Logging Server 80 4.5 The Client Application 95 4.6 Summary 99 Part II Concurrent Object-Oriented Network Programming 101 Chapter 5 Concurrency Design Dimensions 1O3 5 1 Iterative Concurrent and Reactive Servers 103 5.2 Processes versus Threads 109 5.3 Process Thread Spawning Strategies 112 5.4 User Kernel and Hybrid ThreadingModels 114 5.5 Time-Shared and Real-Time Scheduling Classes 119 5.6 Task- versus Message-Based Architectures 12 1 5.7 Summary .