Summary
This chapter provided an overview of the basic network terms and concepts. Networking is a large and complicated subject. In this chapter, we focused on those concepts that are relevant to networking in Java.
The NetworkInterface class was introduced. This class provides low-level access to the devices connected to a computer that support networking. We also learned how to obtain the MAC address for a device.
We focused on the support that Java provides to access the Internet. The foundation IP protocol was detailed. This protocol is supported by the InetAddress class. Java uses the Inet4Address and Inet6Address classes to support IPv4 and IPv6 addresses, respectively.
We also illustrated the use of the URI and URL classes. These classes ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access