O'Reilly logo

Core Java™ Volume II–Advanced Features, Eighth Edition by Gary Cornell, Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Networking

<feature><title></title> <objective>

CONNECTING TO A SERVER

</objective>
<objective>

IMPLEMENTING SERVERS

</objective>
<objective>

INTERRUPTIBLE SOCKETS

</objective>
<objective>

SENDING E-MAIL

</objective>
<objective>

MAKING URL CONNECTIONS

</objective>
</feature>

We begin this chapter by reviewing basic networking concepts. We then move on to writing Java programs that connect to network services. We show you how network clients and servers are implemented. Finally, you will see how to send e-mail from a Java program and how to harvest information from a web server.

Connecting to a Server

Before writing our first network program, let’s learn about a great debugging tool for network programming that you already have, namely, telnet. Telnet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required