McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 16 Socket Interface
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
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONTENTS (continued) UDP CLIENT-SERVER PROGRAMS CONNECTION-ORIENTED CONCURRENT SERVER TCP CLIENT-SERVER PROGRAMS
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOME DEFINITIONS 16.1
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-1 Data types
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-2 Internet address structure
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKETS 16.2
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-3 Socket address
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-4 Socket structure
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-5 Socket types
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 BYTE ORDERING 16.3
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-6 Big-endian byte order
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-7 Little-endian byte order
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 The byte order for the TCP/IP protocol suite is big endian.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-8 Bite-order transformation
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-9 Declarations for byte-order transformation
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 ADDRESS TRANSFORMATION 16.4
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Address transformation
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declarations for address transformation functions
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 BYTE MANIPULATION FUNCTIONS 16.5
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declarations for byte-manipulation functions
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 INFORMATION ABOUT REMOTE HOST 16.6
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for gethostbyname
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Hostent structure
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 SOCKET SYSTEM CALLS 16.7
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for socket function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for bind function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for connect function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for listen function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for accept function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for sendto function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for recvfrom function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for read function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for write function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Declaration for close function
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONNECTIONLESS ITERATIVE SERVER 16.8
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Socket interface for connectionless iterative server
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 UDP CLIENT-SERVER PROGRAMS 16.9
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 CONNECTION-ORIENTED CONCURRENT SERVER 16.10
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure Socket interface for connection-oriented concurrent server
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure (repeated), Part I
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure (repeated), Part II
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-27, Part I Client and Server
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Figure 16-27, Part II