Download presentation
Presentation is loading. Please wait.
Published byChad Cunningham Modified over 9 years ago
1
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface
2
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS SOME DEFINITIONS SOCKETS BYTE ORDERING ADDRESS TRANSFORMATION BYTE MANIPULATION FUNCTIONS INFORMATION ABOUT REMOTE HOST SOCKET SYSTEM CALLS CONNECTIONLESS ITERATIVE SERVER
3
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS (continued) UDP CLIENT-SERVER PROGRAMS CONNECTION-ORIENTED CONCURRENT SERVER TCP CLIENT-SERVER PROGRAMS
4
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOME DEFINITIONS 16.1
5
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-1 Data types
6
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-2 Internet address structure
7
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKETS 16.2
8
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-3 Socket address
9
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-4 Socket structure
10
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-5 Socket types
11
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 BYTE ORDERING 16.3
12
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-6 Big-endian byte order
13
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-7 Little-endian byte order
14
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 The byte order for the TCP/IP protocol suite is big endian.
15
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-8 Bite-order transformation
16
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-9 Declarations for byte-order transformation
17
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 ADDRESS TRANSFORMATION 16.4
18
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-10 Address transformation
19
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-11 Declarations for address transformation functions
20
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 BYTE MANIPULATION FUNCTIONS 16.5
21
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-12 Declarations for byte-manipulation functions
22
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 INFORMATION ABOUT REMOTE HOST 16.6
23
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-13 Declaration for gethostbyname
24
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-14 Hostent structure
25
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKET SYSTEM CALLS 16.7
26
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-15 Declaration for socket function
27
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-16 Declaration for bind function
28
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-17 Declaration for connect function
29
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-18 Declaration for listen function
30
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-19 Declaration for accept function
31
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-20 Declaration for sendto function
32
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-21 Declaration for recvfrom function
33
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-22 Declaration for read function
34
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-23 Declaration for write function
35
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-24 Declaration for close function
36
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONNECTIONLESS ITERATIVE SERVER 16.8
37
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-25 Socket interface for connectionless iterative server
38
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 UDP CLIENT-SERVER PROGRAMS 16.9
39
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONNECTION-ORIENTED CONCURRENT SERVER 16.10
40
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-26 Socket interface for connection-oriented concurrent server
41
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-26 (repeated), Part I
42
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-26 (repeated), Part II
43
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-27, Part I Client and Server
44
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-27, Part II
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.