O'Reilly logo

Operating Systems: Concurrent and Distributed Software Design by Tim Harris, Jean Bacon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16.5. Java's sockets and streams

In this section we give an example of client–server programming in Java over connection-oriented communication. We see how the java.net package supports the development of such systems; the full detail of connection management, as described above in Section 16.4, is done on behalf of the programmer. The programmer is aware of the socket abstraction but is shielded from some of the detail of socket programming.

Figure 16.7 shows a client and server program (application) executing on two different host machines, communicating with each other via layers of standard networking software and a physical connection. Note that for each host machine, the other machine will be considered a remote machine (or remote host). ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required