FileDocCategorySizeDatePackage
DataStuffer.javaAPI DocExample1059Tue Feb 21 12:29:48 GMT 2006None

DataStuffer

public class DataStuffer extends Object

Fields Summary
private static byte[]
data
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

  
         
    
    int port = 9000;
    for (int i = 0; i < data.length; i++) data[i] = (byte) i;
    
    ServerSocket server = new ServerSocket(port);
    while (true) {
      Socket socket = server.accept();
      Thread stuffer = new StuffThread(socket);
      stuffer.start();
    }