Computer networking is concerned with communication between computers. Nowadays, this form of interaction is ubiquitous. Whenever you surf the Internet, it is your machine exchanging messages with remote servers. When you transfer a file over an FTP channel, you are also using some kind of networking service. Java comes equipped with the java.net package that contains types that make network programming easy.
This chapter starts with an overview of networking and examines the HTTP protocol. Towards the end of the chapter, it presents some examples with sockets.
A network is a collection of computers that can communicate with each other. Just like two people use a common language ...