Chapter 3

Winsock 2 and Internet Protocol

 

 

 

COMPLETED PROJECT DOWNLOAD

 

What do we have in this chapter?

 

  1. IPv4

  2. Addressing

  3. Unicast

  4. Multicast

  5. Broadcast

  6. IPv4 Management Protocols

  7. Addressing IPv4 from Winsock

  8. IPv6

  9. Addressing

  10. Unicast

  11. Anycast

  12. Multicast

  13. Addressing IPv6 from Winsock

  14. Address and Name Resolution

  15. Name Resolution Routines

  16. The Unicode Version, GetAddrInfoW()

  17. Program Example Using AI_NUMERICHOST

  18. Simple Address Conversion

  19. WSAAddressToString() and WSAStringToAddress() Program Examples

  20. The InetNtop()/inet_ntop()

  21. The InetPton()/inet_pton()

  22. Legacy Name Resolution Routines

  23. The getprotobyname() Program Example

  24. The getprotobyport() Program Example

  25. Writing IP Version–Independent Program Example

  26. The Client Example

  27. The Server Example

  28. Another Day, Another Example: The IPv6 Server Program

  29. The IPv6 Client Program Example

  30. Testing IPv6 Client and Server Programs

 

Summary

 

In this chapter, we've discussed both IPv4 and IPv6. We covered addressing, name resolution, as well as the necessary Winsock data structures for each address family. The new name resolution functions were described followed by the legacy name resolution functions. Finally, we covered how to write applications that work seamlessly over IPv4 and IPv6. In other chapter, we will try to cover the remaining protocols accessible from Winsock, including IPX/SPX, AppleTalk, IrDA, and ATM.

 

 

 

 

HOME

 

 

Custom Search

< Chap 2: Protocol Characteristics | Part 1 | Part 2 | Part 3 | | Part 4 | Part 5 | Part 6 | Chap 4: Other Supported Protocols >