17.10. Summary

Java sockets let you create network clients or servers that can communicate with general-purpose network programs written in any language. The process of building a client is straightforward: open a socket, create input and output streams from the socket, use these streams for communication, then close the socket. A server is similar but waits for an incoming connection before the socket can be created. Both types of systems frequently need to parse input they receive, and a StringTokenizer is a convenient tool for this. RMI is a powerful and convenient alternative when distributing processing among Java-only systems.

In the next part of the book we focus on server-side programming. First, we cover HTML forms as front ends to servlets ...

Get Core Web Programming, Second Edition 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.