Skip to Content
Core Java, Volume II: Advanced Features, 13th Edition
book

Core Java, Volume II: Advanced Features, 13th Edition

by Cay S. Horstmann
August 2024
Intermediate to advanced content levelIntermediate to advanced
988 pages
24h 37m
English
Pearson
Content preview from Core Java, Volume II: Advanced Features, 13th Edition

Chapter 4 ▪ Networking

We begin this chapter by reviewing basic networking concepts, then move on to writing Java programs that connect to network services. We will 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.

4.1. Connecting to a Server

In the following sections, you will connect to a server, first by hand and with telnet, and then with a Java program.

4.1.1. Using Telnet

The telnet program is a great debugging tool for network programming. You should be able to launch it by typing telnet from a command shell.

In Windows, you need to activate telnet. Go to the Control Panel, select Programs, click Turn Windows Features ...

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.
Start your free trial

You might also like

Core Java, Volume I: Fundamentals, 13th Edition

Core Java, Volume I: Fundamentals, 13th Edition

Cay S. Horstmann

Publisher Resources

ISBN: 9780135371671