Chapter 3. Java Sockets and URLs

  • Sockets and Interprocess Communication

  • Client/Server Methodology

  • The Pizza Order Protocol (TPOP)

  • The TPOP Server

  • The TPOP Client

  • UDP Client

Sockets and Interprocess Communication

At the heart of everything we discuss in this book is the notion of interprocess communication (IPC). In this chapter, we will look at some examples using Java mechanisms for interprocess communication. IPC is a fancy way of saying "two or more Java programs talking with each other." Usually the programs execute on different computers, but sometimes they may execute on the same host.

Introduction to IPC

When you call Charles Schwab to check on your stock portfolio, you dial a telephone number. Once connected, you press some telephone buttons to ...

Get Advanced JAVA Networking now with O’Reilly online learning.

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