Download presentation
Presentation is loading. Please wait.
Published byMarilynn Lindsey Modified over 9 years ago
1
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
3
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS (continued) UDP CLIENT-SERVER PROGRAMS CONNECTION-ORIENTED CONCURRENT SERVER TCP CLIENT-SERVER PROGRAMS www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
6
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-2 Internet address structure www.btechebooks4u.blogspot.com
7
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKETS 16.2 www.btechebooks4u.blogspot.com
8
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-3 Socket address www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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. www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
17
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 ADDRESS TRANSFORMATION 16.4 www.btechebooks4u.blogspot.com
18
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-10 Address transformation www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
21
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-12 Declarations for byte-manipulation functions www.btechebooks4u.blogspot.com
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 structurewww.btechebooks4u.blogspot.com
25
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKET SYSTEM CALLS 16.7 www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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 www.btechebooks4u.blogspot.com
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 IIwww.btechebooks4u.blogspot.com
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 IIwww.btechebooks4u.blogspot.com
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.