0% found this document useful (0 votes)
353 views

Douglas E. Comer, David L. Stevens - Internetworking With TCP - IP, Vol. III - Client-Server Programming and Applications, Linux - Posix Sockets Version (2000, Addison-Wesley)

libro de redes

Uploaded by

Marcos Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
353 views

Douglas E. Comer, David L. Stevens - Internetworking With TCP - IP, Vol. III - Client-Server Programming and Applications, Linux - Posix Sockets Version (2000, Addison-Wesley)

libro de redes

Uploaded by

Marcos Ramos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 528
Contents Foreword xxi Preface sodil Chapter 1 Introduction And Overview 1 il Use OF TCPAP | 1.2 Designing Applications For A Distributed Environment 2 4.3 Standard And Nonstandard Application Protocols 2 1.4 An Example Of Standard Application Protocol Use 2 15 An Example Connection 3 1.6 Using TELNET To Access An Alternative Service 4 1.7 Application Protocols And Software Flexibility 5 1.8 Viewing Services From The Provider's Perspective 6 1.9 The Remainder Of The Tea 7 440° Summary 7 Chapter 2 The Client Server Model And Software Design 24 2.2 23 Introduction 9 Motivation 10 Terminology And Concepts 10 23.1 Clients And Servers 10 232 Privilege And Complexity 11 23.3 Standard Vs. Nonstandard Client Software 11 2.34 — Parameterization Of Clients 12 23.5 Connectionless Vs. Connection-Oriented Servers 13 236 Stateless Vs. Statefl Servers 14 23.7 A Stateful File Server Example 14 Contents 23.8 — Statelessness ty A Protocol Issue 16 23.9 Servers As Clients 17 24 Summary 18 Chapter 3 Concurrent Processing in Client-Server Software Pal 32 Introduction 21 32 Concurrency In Networks 22 3.3 Concurrency In Servers 23 3.4 Terminology And Concepts 24 341 The Process Concept 25 342 Threads 25 34.3 Programs vs. Threads 26 344 Procedure Calls 26 35 An Example Of Concurrent Thread Creation 27 3.5.1 A Sequential C Example 77 3.5.2 A Concurrent Version 28 3.5.3 Timesticing 30 36 — Diverging Threads 31 37 — Context Switching And Protocol Software Design 32 3.8 Concurrency And Asynchronous /O 32 3.9 Concurrency Under UNIX 33 340 Executing A Separately Compiled Program 34 BE Summary 35 Chapter 4 Program interface To Protocols a7 42 Introduction 37 4.2 Loosely Specified Protocol Software Interface 37 42.1 Advantages And Disadvamages 38 4.3 Interface Functionclity 38 44 Conceptual Interface Specification 39 4.5 Implememation Of An API 39 46 Two Basic Approaches To Network Communication 4) 4.7 The Basic VO Functions Available In ANSI C42 4.8 History Of The UNIX Socket API 43 49° Summary 44 vi Contents Chapter 5 The Socket API a7 5b Introduction 47 52 The History Of Sockets 47 33 Specifying A Protocol Interface 48 34 The Socket Abstraction 49 5.d.t Socket Descriptors 49 542 System Dasa Structures For Sockets 50 54.3 Using Sockets 51 55 Specifying An Endpoint Address 51 5.6 A Generic Address Structure 52 5.7 Functions In The Socket API 53 5.24 The WSAStartup Function 53 The WSACleanup Function 54 The Socket Function 54 The Connect Function 54 The Send Function 54 The Recv Function 55 The Closesocket Function’ 55 The Bind Function 55 The Listen Function 55 The Accept Function 56 Summary Of Socket Calls Used With TCP 56 58 Utility Routines For Integer Conversion 56 5.9 Using Socket Calls In A Program 58 5.10 Symbolic Constants For Socket Call Parameters 59 S11 Summary 39 Chapter 6 Algorithms And Issues In Client Software Design 61 6.1 Introduction 61 6.2 Learning Algorithms Instead Of Details 61 6.3 Client Architecture 62 54 Identifying The Location Of A Server 62 53 Parsing An Address Argument 64 6.6 Looking Up 4 Domain Name 65 6.7 Looking Up A Well-Known Port By Name 66 6.8 Por Numbers And Network Byte Order 66 6.9 — Looking Up A Protocol By Name 67 6.10 The TCP Client Algorithm $7 6.11 Allocating A Socket 68 6.12 Choosing A Local Protocol Port Number 69 vi

You might also like