Corrections to Chapter 5 of Java I/O, Network Streams

p. 60: I was a little cavalier with my description of the code base which is really a directory rather than a host. Change

Applets running under the control of a security manager--that is untrusted applets that run inside a web browser--are normally only allowed to connect back to their code base. The code base is the host from which they were downloaded, as returned by the getCodeBase() method of the Applet class.
to

Applets running under the control of a security manager--that is untrusted applets that run inside a web browser--are normally only allowed to connect back to the host they were downloaded from. This host can be determined from the URL returned by the getCodeBase() method of the Applet class.
p. 65: In the JDK 1.2, the System property mail.host (note the period) is checked for the address of the SMTP server rather than mailhost. It's still mailhost in Java 1.1, however. Thus in Java 1.1:

java -Dmailhost=mail.cloud9.net MailClient elharo@metalab.unc.edu

In Java 1.2:

java -Dmail.host=mail.cloud9.net MailClient elharo@metalab.unc.edu

p. 70: In both code examples on the page

Socket s = s.accept();

should be

Socket s = ss.accept();


[ Java I/O Corrections | Java I/O Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 1999 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified December 3, 1999