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

Ch16

193 views
162 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
193
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ch16

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

×