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

p. 349: In the main() method, "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. That is, the last 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 September 16, 2006