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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.