Chapter 2
Network Programming
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 ...
Get Java All-in-One For Dummies, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.