FileDocCategorySizeDatePackage
MyServer.javaAPI DocExample662Tue Jan 28 17:17:12 GMT 1997None

MyServer.java

// This example is from the book _Java Threads_ by Scott Oaks and Henry Wong. 
// Written by Scott Oaks and Henry Wong.
// Copyright (c) 1997 O'Reilly & Associates.
// You may study, use, modify, and distribute this example for any purpose.
// This example is provided WITHOUT WARRANTY either expressed or implied.

// Sample MyServer -- Chapter 5, p. 97.  This example requires the TCPServer
// and ServerHandler classes to run.

import java.net.*;
import java.io.*;

public class MyServer {
    public static void main(String args[]) throws Exception {
        TCPServer serv = new ServerHandler();

        serv.startServer(300);
    }
}