In This Chapter
IP addresses, DNS names, and other fun stuff
The InetAddress class
The Socket class
The ServerSocket class
A simple client/server program
A server program that uses threads
The term network programming can mean a lot of different things. Applets are a form of network programming — as are Java Server Pages and servlets. I cover these network programming features in detail in Book VII.
File and database programming can also be thought of as a form of network programming; files and databases can be located on a server computer rather than on the computer where the application is run. Book VIII covers the networking aspects of file and database programming.
In this chapter, you discover how to use Java's sockets interface, which lets you set up input and output streams between programs on client and server computers. In fact, I show you how ...