HPlogo HP-UX IPv6 Porting Guide: HP-UX 11i v2 September 2004 > Chapter 5 Overview of IPv4 and IPv6 Call Set-up

Using AF_INET Socket for IPv4 UDP Communications

» 

Technical documentation

Complete book in PDF

 » Table of Contents

Figure 5-1 Title not available (Using AF_INET Socket for IPv4 UDP Communications)

  1. Application calls gethostbyname() and passes the host name, host1.

  2. The search finds host1 in the Name Service database and gethostbyname() returns the IPv4 address 1.2.3.4.

  3. The application calls the socket() function to open an IPv4 AF_INET socket.

  4. The application calls the send () function to the 1.2.3.4 address.

  5. The socket layer passes the send request, socket information and address to the UDP/IP module.

  6. The UDP/IP module puts the 1.2.3.4 address into the IPv4 packet header and passes the information to the IPv4 module for transmission.

© 2004 Hewlett-Packard Development Company, L.P.