Chapter 2

Network Programming

In This Chapter

arrow IP addresses, DNS names, and other fun stuff

arrow The InetAddress class

arrow The Socket class

arrow The ServerSocket class

arrow A simple client/server program

arrow 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.