Corrections to Chapter 10 of Java Network Programming, Sockets for Servers

p. 349: In the main() method, on the last line of the page, "if (args.length >= 2)" should be "if (args.length > 2)".

p. 358: At the end of example 10-8, the variable e should be ex. i.e. the last ,code>catch block should read:

    catch (IOException ex) {
      System.out.println("Server could not start because of an " 
       + ex.getClass());
      System.out.println(ex);
    }
[ Java Network Programming Corrections | Java Network Programming Home Page | Table of Contents | Examples | Order from Amazon ] ]

Copyright 2004, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 8, 2006