Using Internet Addresses
Internet addresses are the most popular socket address family. They identify communication endpoints on an internet, which is a network of computers that communicate using the TCP/IP suite of protocols. The “capital-I” Internet is the best known internet, but the Internet family of addresses is also used for thousands of smaller networks.
An internet address has two parts:
*Host, which identifies the computer
*Port, which identifies where to send information to the host
An internet address is represented in the Networking package as an RWInetAddr. As shown in Figure 10, an RWInetAddr object contains two objects: an RWInetHost to represent the host, and an RWInetPort to represent the port.
Figure 10 – An RWInetAddr object