Ch16
Upcoming SlideShare
Loading in...5
×
 

Ch16

on

  • 258 views

 

Statistics

Views

Total Views
258
Views on SlideShare
258
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Ch16 Presentation Transcript

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