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

/**
 * Title:        Sample Server
 * Description:  This utility will accept input from a socket, posting back to the socket before closing the link.
 * It is intended as a template for coders to base servers on. Please report bugs to brad at kieser.net
 * Copyright:    Copyright (c) 2002
 * Company:      Kieser.net
 * @author B. Kieser
 * @version 1.0
 */

public class sample_server {

  private static int port=4444, maxConnections=0;
  // Listen for incoming connections and handle them
  public static void main(String[] args) {
    int i=0;

    try{
      ServerSocket listener = new ServerSocket(port);
      Socket server;

      while((i++ < maxConnections) || (maxConnections == 0)){
        doComms connection;

        server = listener.accept();
        doComms conn_c= new doComms(server);
        Thread t = new Thread(conn_c);
        t.start();
      }
    } catch (IOException ioe) {
      System.out.println("IOException on socket listen: " + ioe);
      ioe.printStackTrace();
    }
  }

}

@@ -59,366 +59,8 @@
 *;%0A%0A
-/**%0A * Title:        Sample Server%0A * Description:  This utility will accept input from a socket, posting back to the socket before closing the link.%0A * It is intended as a template for coders to base servers on. Please report bugs to brad at kieser.net%0A * Copyright:    Copyright (c) 2002%0A * Company:      Kieser.net%0A * @author B. Kieser%0A * @version 1.0%0A */
 %0A%0Apu

Test 2